Function at 0x4026c1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x517f80
sub esp, 0x2bc
push ebx
mov ebx, dword [esp + 0x2c4]
mov eax, dword [ebx + 0xb60]
test al, 1
jne 0x517faf
test ah, 4
je 0x517faf
mov dword [ebx + 0xc7c], 0
pop ebx
add esp, 0x2bc
ret
mov ecx, dword [esp + 0x2c8]
push ebp
xor ebp, ebp
push esi
cmp ecx, ebp
push edi
jne 0x518117
mov edx, dword [0x64fa20]
lea ecx, [ebx + 0xc80]
test ah, 4
mov dword [ecx], edx
mov edx, dword [0x64fa24]
mov dword [ecx + 4], edx
mov edx, dword [0x64fa28]
mov word [ebx + 0xc8c], bp
mov dword [ecx + 8], edx
je 0x5180f4
mov ecx, dword [ebx + 0xd30]
mov edi, dword [0xd5173c]
mov eax, dword [ebx + 0xba4]
cmp ecx, edi
mov dword [esp + 0x44], eax
jg 0x5180c7
lea edx, [ecx + ecx*2]
shl edx, 2
fld dword [edx + 0xd517c8]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x518031
mov esi, 1
jmp 0x51804b
fld dword [edx + 0xd517c8]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x518049
or esi, 0xffffffff
jmp 0x51804b
xor esi, esi
fld dword [esp + 0x44]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x518063
mov eax, 1
jmp 0x51807b
fld dword [esp + 0x44]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x518079
or eax, 0xffffffff
jmp 0x51807b
xor eax, eax
cmp esi, eax
jne 0x5180be
fld dword [edx + 0xd517c8]
fabs
fld dword [esp + 0x44]
fabs
fcompp
fnstsw ax
test ah, 0x41
je 0x5180be
lea ecx, [edx + 0xd517c0]
mov edx, dword [edx + 0xd517c0]
mov dword [0xd525d0], edx
mov eax, dword [ecx + 4]
mov dword [0xd525d4], eax
mov ecx, dword [ecx + 8]
mov dword [0xd525d8], ecx
mov ecx, 0x12c
inc ecx
cmp ecx, edi
jle 0x518011
cmp ecx, 0x12c
jge 0x518117
lea edx, [ebx + 0xb9c]
mov eax, dword [ebx + 0xb9c]
mov dword [0xd525d0], eax
mov ecx, dword [edx + 4]
mov dword [0xd525d4], ecx
mov edx, dword [edx + 8]
mov dword [0xd525d8], edx
jmp 0x518117
lea eax, [ebx + 0xc44]
mov ecx, dword [ebx + 0xc44]
mov dword [0xd525d0], ecx
mov edx, dword [eax + 4]
mov dword [0xd525d4], edx
mov eax, dword [eax + 8]
mov dword [0xd525d8], eax
mov ecx, dword [0xd525d0]
mov edx, dword [0xd525d4]
mov eax, dword [0xd525d8]
mov dword [esp + 0x3c], ecx
mov ecx, 0x78
mov esi, ebx
lea edi, [esp + 0xec]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0xc6c]
mov dword [esp + 0x44], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc5c]
mov edi, dword [ebx + 0xc74]
push ebp
mov dword [esp + 0xf4], 0
lea eax, [edx + ecx*2]
xor edx, edx
mov dword [esp + 0x134], ebp
lea eax, [eax + eax*2]
add eax, edi
lea ecx, [eax*8]
sub ecx, eax
mov dl, byte [ecx*4 + 0x650cbd]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp dword [esp + 0xfc]
call fcn.00401131
mov eax, dword [esp + 0x2d8]
add esp, 4
cmp eax, ebp
je 0x5181b7
push 0xd51740
call fcn.00401960
add esp, 4
jmp 0x5182ec
mov eax, dword [ebx + 0xaf0]
mov ecx, dword [ebx + 0xaec]
mov edx, dword [ebx + 0xae8]
push eax
push ecx
push edx
call fcn.0040281a
movsx eax, word [ebx + 0xb06]
push eax
call fcn.004040cf
mov eax, dword [ebx + 0xd4c]
add esp, 0x10
cmp eax, ebp
je 0x518202
push 0x3f800000
push 0x3f800000
push 0xbf800000
call fcn.00402c52
add esp, 0xc
lea ecx, [esp + 0xec]
push ecx
call fcn.004017d5
push 5
push ebp
call fcn.00402f1d
push 0x4000
call fcn.004040cf
push 0xffffc000
call fcn.004040d4
push 2
call fcn.00402581
push 0x8000
call fcn.004040cf
push 9
call fcn.00402581
push 4
call fcn.00402581
push 0x11
call fcn.00402581
lea edx, [esp + 0x7c]
push edx
call fcn.00404386
mov edx, eax
push 0x12
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [0xd50fa0], eax
mov dword [0xd50fa4], ecx
mov dword [0xd50fa8], edx
call fcn.00402581
push 0xe
call fcn.00402581
lea eax, [esp + 0x88]
push eax
call fcn.00404386
mov esi, dword [eax]
push 0
mov edi, dword [eax + 4]
mov ebp, dword [eax + 8]
call fcn.00401131
push 0xb02810
call fcn.00401960
add esp, 0x40
call fcn.004015fa
push 0x64fa20
call fcn.004021da
push 0xd51780
call fcn.00401212
push 1
call fcn.00404106
push 0xb02868
call fcn.00401960
push ebp
push edi
push esi
call fcn.0040281a
push 0xd51740
call fcn.00401212
add esp, 0x20
mov edx, dword [0xd50fa4]
mov eax, dword [0xd50fa8]
mov ecx, 0x10
mov esi, 0xd51780
lea edi, [esp + 0x6c]
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0xc84]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0xc80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0xd50fa0]
lea esi, [ebx + 0xc80]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0xc88]
push ecx
push edx
push eax
call fcn.0040281a
lea ecx, [esp + 0x78]
push ecx
call fcn.00403be8
push 0xa
call fcn.00402581
lea edx, [esp + 0x80]
push edx
call fcn.00401212
lea eax, [esp + 0x6c]
push eax
call fcn.00404386
mov edi, dword [eax]
push 0
mov ebp, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x7c], ecx
call fcn.00401131
push 0xb02810
call fcn.00401960
call fcn.004015fa
push 0x64fa20
call fcn.004021da
lea edx, [esp + 0xd4]
push edx
call fcn.00401212
push 1
call fcn.00404106
push 0xb02868
call fcn.00401960
mov eax, dword [esp + 0x90]
push eax
push ebp
push edi
call fcn.0040281a
movsx ecx, word [ebx + 0xc8c]
add esp, 0x40
push ecx
call fcn.004040d4
lea edx, [esp + 0xb0]
push edx
call fcn.00403be8
lea eax, [esp + 0x38]
push eax
call fcn.00404386
mov ecx, dword [eax]
push 0
push 0
push 0x40800000
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
call fcn.0040281a
lea ecx, [esp + 0x78]
push ecx
call fcn.00404386
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x54], edx
push 1
call fcn.00404106
fld dword [esp + 0x50]
fsub dword [esp + 0x40]
add esp, 0x1c
fstp dword [esp]
fld dword [esp + 0x38]
fsub dword [esp + 0x28]
push ecx
fstp dword [esp]
call fcn.00403724
fld dword [esp + 0x44]
fsub dword [esp + 0x28]
add esp, 8
push eax
push ecx
fstp dword [esp]
fld dword [esp + 0x48]
fsub dword [esp + 0x2c]
push ecx
fstp dword [esp]
call fcn.00403724
add esp, 8
push eax
call fcn.00403a99
mov ecx, eax
add esp, 8
movsx eax, cx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fabs
fcom qword [0x6549d8]
fnstsw ax
test ah, 1
je 0x51850a
fcomp qword [0x654c20]
fnstsw ax
test ah, 0x41
jne 0x5184b7
test cx, cx
jle 0x5184a9
mov ecx, 1
jmp 0x5184b4
xor edx, edx
test cx, cx
setge dl
dec edx
mov ecx, edx
shl ecx, 0xb
add word [ebx + 0xc8c], cx
mov cx, word [ebx + 0xc8c]
movsx eax, cx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fabs
fcomp qword [0x6549f0]
fnstsw ax
test ah, 0x41
jne 0x51850c
test cx, cx
jle 0x5184f5
mov eax, 1
shl eax, 0xd
mov word [ebx + 0xc8c], ax
jmp 0x51850c
xor eax, eax
test cx, cx
setge al
dec eax
shl eax, 0xd
mov word [ebx + 0xc8c], ax
jmp 0x51850c
fstp st(0)
push 0
call fcn.00401131
lea ecx, [esp + 0x70]
push ecx
call fcn.00401960
lea edx, [esp + 0x68]
push edx
call fcn.00404386
mov edi, dword [eax]
push 0
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], eax
call fcn.00401131
push 0xb02810
call fcn.00401960
call fcn.004015fa
push 0x64fa20
call fcn.004021da
lea ecx, [esp + 0x84]
push ecx
call fcn.00401212
push 1
call fcn.00404106
push 0xb02868
call fcn.00401960
mov edx, dword [esp + 0x80]
push edx
push ebp
push edi
call fcn.0040281a
movsx eax, word [ebx + 0xc8c]
push eax
call fcn.004040d4
lea ecx, [esp + 0xa0]
push ecx
call fcn.00403be8
push 0
push 0
push 0x40800000
call fcn.0040281a
add esp, 0x44
lea edx, [esp + 0x60]
push edx
call fcn.00404386
mov ecx, dword [eax]
push 1
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
call fcn.00404106
fld dword [esp + 0x44]
fsub dword [esp + 0x38]
fld dword [esp + 0x48]
fsub dword [esp + 0x3c]
mov ecx, esi
fstp dword [esp + 0x20]
fadd dword [esi]
fstp dword [esi]
fld dword [esp + 0x20]
fadd dword [ebx + 0xc84]
fstp dword [ebx + 0xc84]
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], ecx
call fcn.00401b54
fld dword [esp + 0x30]
fsub dword [esp + 0x58]
fstp dword [esp + 0x18]
fld dword [esp + 0x28]
fsub dword [esp + 0x50]
mov edi, dword [esp + 0x18]
push edi
fstp dword [esp + 0x38]
mov ebp, dword [esp + 0x38]
push ebp
call fcn.00403724
neg eax
push eax
call fcn.004040cf
lea edx, [esp + 0x28]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00404340
push 1
call fcn.00404106
call fcn.00401b54
fld dword [esp + 0x44]
fsub dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
push edx
fstp dword [esp + 0x38]
push eax
push ecx
call fcn.004026d0
mov edx, dword [esp + 0x40]
add esp, 0x2c
fstp dword [esp]
push edx
call fcn.00403724
push eax
call fcn.004040ca
lea eax, [esp + 0x20]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00404340
push 1
call fcn.00404106
fld dword [esp + 0x34]
fcomp dword [0x6442b0]
add esp, 0x18
fnstsw ax
test ah, 0x41
jne 0x5186cc
mov dword [esp + 0x1c], 0x40400000
jmp 0x5186e5
fld dword [esp + 0x1c]
fcomp dword [0x6341ac]
fnstsw ax
test ah, 1
je 0x5186e5
mov dword [esp + 0x1c], 0xbf800000
fld dword [esp + 0x18]
fabs
fcomp qword [0x6447d8]
fnstsw ax
test ah, 0x41
jne 0x51873b
fld dword [esp + 0x18]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x518710
mov eax, 1
jmp 0x518728
fld dword [esp + 0x18]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x518726
or eax, 0xffffffff
jmp 0x518728
xor eax, eax
lea edx, [eax*4]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fstp dword [esp + 0x18]
call fcn.00401b54
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.004026d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
fstp dword [esp]
push ecx
call fcn.00403724
neg eax
push eax
call fcn.004040ca
lea edx, [esp + 0x20]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00404340
push 1
call fcn.00404106
call fcn.00401b54
push edi
push ebp
call fcn.00403724
push eax
call fcn.004040cf
lea ecx, [esp + 0x38]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.00404340
push 1
call fcn.00404106
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esi], eax
mov eax, dword [esp + 0x304]
add esp, 0x30
mov dword [esi + 4], ecx
inc eax
mov dword [esi + 8], edx
pop edi
pop esi
cmp eax, 4
pop ebp
jge 0x5187e0
push eax
push ebx
call fcn.004026c1
add esp, 8
pop ebx
add esp, 0x2bc
ret