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

Disassembly:
jmp 0x519d00
sub esp, 0xe18
push ebx
mov ebx, dword [esp + 0xe20]
push ebp
push esi
mov esi, dword [ebx + 0xc6c]
mov ecx, dword [ebx + 0xc5c]
xor ebp, ebp
push edi
cmp esi, ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], 0x4479c000
mov dword [esp + 0x38], 0x4479c000
mov edi, 1
je 0x519d5a
mov eax, dword [ebx + 0xc58]
mov dword [esp + 0x70], edi
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
cmp dword [eax*4 + 0x64fb00], 2
je 0x519d5e
mov dword [esp + 0x70], ebp
mov dx, word [ebx + 0xd46]
test dl, 0x10
jne 0x519d83
cmp esi, ebp
je 0x519d83
mov eax, dword [ebx + 0xc58]
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
cmp dword [eax*4 + 0x64fb00], edi
je 0x519d88
test dl, 0x20
je 0x519d8e
mov dword [esp + 0x40], edi
jmp 0x519d92
mov dword [esp + 0x40], ebp
mov eax, dword [0x6b8278]
cmp eax, ebp
je 0x519da4
cmp eax, 3
mov dword [esp + 0x3c], ebp
jne 0x519da8
mov dword [esp + 0x3c], edi
lea eax, [ebx + 0xb9c]
cmp ecx, ebp
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x4c], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x50], esi
mov edx, dword [edx + 8]
mov dword [esp + 0x54], edx
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x64], eax
jne 0x51a239
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x652474
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
test edx, edx
je 0x519dfe
mov eax, dword [ecx]
test al, 0x20
jne 0x519e21
mov eax, dword [esp + 0x40]
test eax, eax
je 0x519e0c
mov eax, dword [ecx]
test al, 0x40
jne 0x519e21
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x519e1a
mov eax, dword [ecx]
test al, 0x80
jne 0x519e21
mov eax, dword [ecx]
test ah, 1
jne 0x519e4c
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x519e2e
test ah, 0x20
jne 0x519e4c
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x519e3b
test ah, 0x40
jne 0x519e4c
test edx, edx
je 0x51a215
test ah, 0x10
je 0x51a215
mov ecx, 0x35e
mov esi, ebx
lea edi, [esp + 0xb0]
lea edx, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xb0]
mov dword [esp + 0xd0c], ecx
push edx
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.00401479
mov ebp, dword [eax]
lea edi, [ebx + 0xae8]
lea edx, [esp + 0x1c]
push edi
mov ecx, dword [eax + 4]
push edx
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
call fcn.00401203
mov ecx, dword [ebx + 0xd30]
mov eax, dword [0xd5173c]
add esp, 0x14
cmp ecx, eax
jg 0x519f79
lea edx, [ecx + ecx*2]
shl edx, 2
fld dword [edx + 0xd517c8]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x519ee3
mov esi, 1
jmp 0x519efd
fld dword [edx + 0xd517c8]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x519efb
or esi, 0xffffffff
jmp 0x519efd
xor esi, esi
fld dword [esp + 0x18]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x519f15
mov eax, 1
jmp 0x519f2d
fld dword [esp + 0x18]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x519f2b
or eax, 0xffffffff
jmp 0x519f2d
xor eax, eax
cmp esi, eax
jne 0x519f6b
fld dword [edx + 0xd517c8]
fabs
fld dword [esp + 0x18]
fabs
fcompp
fnstsw ax
test ah, 0x41
je 0x519f6b
lea eax, [edx + 0xd517c0]
mov ecx, dword [edx + 0xd517c0]
mov dword [esp + 0x10], ecx
mov ecx, 0x12c
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
mov eax, dword [0xd5173c]
inc ecx
cmp ecx, eax
jle 0x519ec3
cmp ecx, 0x12c
jge 0x51a02b
push 0
push 0
lea ecx, [esp + 0x94]
push 0x3f800000
push ecx
call fcn.00403cba
mov ecx, dword [eax]
add esp, 4
mov edx, esp
sub esp, 0xc
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, esp
sub esp, 0xc
mov dword [edx + 8], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, esp
sub esp, 0xc
mov dword [ecx + 8], edx
mov ecx, dword [0xb02c3c]
mov edx, dword [0xb02c40]
mov dword [eax], ecx
mov ecx, dword [0xb02c44]
mov dword [eax + 4], edx
mov edx, esp
mov dword [eax + 8], ecx
mov eax, dword [0xb02c14]
mov ecx, dword [0xb02c18]
mov dword [edx], eax
mov eax, dword [0xb02c1c]
mov dword [edx + 4], ecx
lea ecx, [esp + 0xc8]
push ecx
mov dword [edx + 8], eax
call fcn.00402df6
mov edx, eax
add esp, 0x34
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fld dword [esp + 0x10]
fsub dword [edi]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0xb60]
mov dword [esp + 0x44], eax
mov ecx, dword [ecx]
and edx, 0x1000
fstp dword [esp + 0x28]
fld dword [ebx + 0xaf0]
fcomp dword [0x634198]
not ecx
shr ecx, 0xa
and ecx, 1
fnstsw ax
or ecx, edx
test ah, 0x41
jne 0x51a073
mov edx, 1
jmp 0x51a08d
fld dword [ebx + 0xaf0]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x51a08b
or edx, 0xffffffff
jmp 0x51a08d
xor edx, edx
fld dword [esp + 0xc54]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x51a0a8
mov eax, 1
jmp 0x51a0c3
fld dword [esp + 0xc54]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x51a0c1
or eax, 0xffffffff
jmp 0x51a0c3
xor eax, eax
cmp edx, eax
je 0x51a0c9
xor ecx, ecx
fld dword [esp + 0xc54]
fabs
fld dword [0xb02c74]
fabs
fcompp
mov dword [esp + 0x78], 1
fnstsw ax
test ah, 1
je 0x51a0f3
mov dword [esp + 0x78], 0
test ecx, ecx
je 0x51a215
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
push eax
push ebp
push ecx
push esi
call fcn.004026d0
fld dword [esp + 0x48]
fabs
fcompp
mov edi, dword [esp + 0x54]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x51a17c
mov edx, dword [esp + 0x30]
push edx
push ebp
push edi
push esi
call fcn.004026d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xd34]
mov edx, dword [esp + 0xd10]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc5c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0xc60]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0xc64]
add esp, 0x10
fstp dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x51a215
fld dword [esp + 0x28]
fabs
fld dword [esp + 0x80]
fabs
fcompp
fnstsw ax
test ah, 0x41
jne 0x51a215
mov eax, dword [esp + 0x30]
push eax
push ebp
push edi
push esi
call fcn.004026d0
fld dword [esp + 0x34]
fabs
fcompp
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x51a215
mov ecx, dword [esp + 0x30]
push ecx
push ebp
push edi
push esi
call fcn.004026d0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xd34]
mov ecx, dword [esp + 0xd10]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0xc5c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc60]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xc64]
add esp, 0x10
fstp dword [esp + 0x24]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add eax, 0x18
inc esi
cmp eax, 0x6527bc
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
jl 0x519dec
jmp 0x51a6a5
cmp ecx, 4
jne 0x51a6fd
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x652474
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
test ah, 2
je 0x51a686
mov ecx, 0x35e
mov esi, ebx
lea edi, [esp + 0xb0]
lea eax, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xb0]
push eax
lea edx, [esp + 0x9c]
push ecx
push edx
mov dword [esp + 0xd18], ebp
call fcn.00401479
mov edx, eax
lea edi, [ebx + 0xae8]
push edi
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
push eax
mov dword [esp + 0x2c], edx
call fcn.00401203
mov ecx, dword [ebx + 0xd30]
mov ebp, dword [0xd5173c]
add esp, 0x14
cmp ecx, ebp
jg 0x51a388
lea edx, [ecx + ecx*2]
shl edx, 2
fld dword [edx + 0xd517c8]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x51a2f7
mov esi, 1
jmp 0x51a311
fld dword [edx + 0xd517c8]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x51a30f
or esi, 0xffffffff
jmp 0x51a311
xor esi, esi
fld dword [esp + 0x18]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x51a329
mov eax, 1
jmp 0x51a341
fld dword [esp + 0x18]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x51a33f
or eax, 0xffffffff
jmp 0x51a341
xor eax, eax
cmp esi, eax
jne 0x51a37f
fld dword [edx + 0xd517c8]
fabs
fld dword [esp + 0x18]
fabs
fcompp
fnstsw ax
test ah, 0x41
je 0x51a37f
lea ecx, [edx + 0xd517c0]
mov edx, dword [edx + 0xd517c0]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x18], ecx
mov ecx, 0x12c
inc ecx
cmp ecx, ebp
jle 0x51a2d7
cmp ecx, 0x12c
jge 0x51a43a
push 0
push 0
lea edx, [esp + 0x94]
push 0x3f800000
push edx
call fcn.00403cba
mov edx, dword [eax]
add esp, 4
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x2c]
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, esp
sub esp, 0xc
mov dword [ecx + 8], edx
mov ecx, dword [0xb02c3c]
mov edx, dword [0xb02c40]
mov dword [eax], ecx
mov ecx, dword [0xb02c44]
mov dword [eax + 4], edx
mov edx, esp
mov dword [eax + 8], ecx
mov eax, dword [0xb02c14]
mov ecx, dword [0xb02c18]
mov dword [edx], eax
mov eax, dword [0xb02c1c]
mov dword [edx + 4], ecx
lea ecx, [esp + 0xd4]
push ecx
mov dword [edx + 8], eax
call fcn.00402df6
mov edx, eax
add esp, 0x34
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fld dword [esp + 0x10]
fsub dword [edi]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0xb60]
mov ecx, dword [ecx]
and eax, 0x1000
fstp dword [esp + 0x28]
fld dword [ebx + 0xaf0]
not ecx
mov edx, ecx
fcomp dword [0x634198]
shr edx, 0xa
and edx, 1
or edx, eax
fnstsw ax
test ah, 0x41
jne 0x51a483
mov esi, 1
jmp 0x51a49d
fld dword [ebx + 0xaf0]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x51a49b
or esi, 0xffffffff
jmp 0x51a49d
xor esi, esi
fld dword [esp + 0xc54]
fcomp dword [0x634198]
fnstsw ax
test ah, 0x41
jne 0x51a4b8
mov eax, 1
jmp 0x51a4d3
fld dword [esp + 0xc54]
fcomp dword [0x634198]
fnstsw ax
test ah, 1
je 0x51a4d1
or eax, 0xffffffff
jmp 0x51a4d3
xor eax, eax
cmp esi, eax
je 0x51a4d9
xor edx, edx
fld dword [ebx + 0xc90]
fcomp qword [0x6443f8]
fnstsw ax
test ah, 0x40
je 0x51a4fc
test byte [ebx + 0xd46], 0x10
je 0x51a4fc
mov eax, 1
jmp 0x51a4fe
xor eax, eax
fld dword [esp + 0xc54]
fabs
fld dword [0xb02c74]
mov bp, word [ebx + 0xd44]
mov esi, ecx
fabs
shr esi, 0xb
fcompp
and esi, 1
and ebp, 0x402
shr ecx, 0x15
or esi, eax
and ecx, 1
fnstsw ax
or ebp, ecx
test ah, 1
je 0x51a539
xor ebp, ebp
test edx, edx
je 0x51a67f
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x51a5da
test ebp, ebp
je 0x51a5da
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
call fcn.004026d0
fld dword [esp + 0x48]
fabs
fcompp
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x51a5da
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push ebx
push edi
call fcn.004026d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xd34]
mov edx, dword [esp + 0xd10]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc5c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0xc60]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0xc64]
add esp, 0x10
fstp dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
test esi, esi
je 0x51a67f
test ebp, ebp
je 0x51a67f
fld dword [esp + 0x28]
fabs
fld dword [esp + 0x80]
fabs
fcompp
fnstsw ax
test ah, 0x41
jne 0x51a67f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push ebx
push edi
call fcn.004026d0
fld dword [esp + 0x34]
fabs
fcompp
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x51a67f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebx
push edi
call fcn.004026d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xd34]
mov eax, dword [esp + 0xd10]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xc5c]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0xc60]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc64]
add esp, 0x10
fstp dword [esp + 0x24]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0xe2c]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
add eax, 0x18
inc ebp
cmp eax, 0x6527bc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
jl 0x51a24e
fld dword [esp + 0x24]
fcomp dword [0x654c34]
fnstsw ax
test ah, 1
je 0x51a6fd
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov dword [ebx + 0xb9c], edx
mov edx, dword [esp + 0x68]
mov dword [ebx + 0xc5c], ecx
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0xba0], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0xba4], ecx
mov dword [ebx + 0xc74], edx
mov dword [ebx + 0xc50], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe18
ret
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
mov dword [ebx + 0xb9c], edx
mov edx, dword [esp + 0x6c]
mov dword [ebx + 0xc5c], ecx
mov ecx, dword [esp + 0x64]
mov dword [ebx + 0xba0], eax
mov eax, dword [esp + 0x7c]
pop edi
pop esi
mov dword [ebx + 0xba4], ecx
mov dword [ebx + 0xc74], edx
mov dword [ebx + 0xc50], eax
pop ebp
pop ebx
add esp, 0xe18
ret