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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54f9c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [esp + 0x2c], ebx
mov dword [eax], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x8c], 1
push 0x20
call fcn.004ed9ad
mov edi, eax
lea eax, [edi + 0x20]
add esp, 4
cmp edi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], esi
je 0x496fc7
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00401ca0
add esp, 8
add edi, 8
mov dword [esp + 0x44], edi
jmp 0x496fe3
push 1
push 1
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x44]
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.00405440
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x48]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x3f800000
je 0x497010
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00401ca0
add esp, 8
add edi, 8
mov dword [esp + 0x44], edi
jmp 0x49702c
push 1
push 1
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x44]
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.00405440
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x48]
mov dword [esp + 0x38], 0xbf800000
mov dword [esp + 0x3c], 0
je 0x497059
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00401ca0
add esp, 8
add edi, 8
mov dword [esp + 0x44], edi
jmp 0x497075
push 1
push 1
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x44]
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.00405440
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x48]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xbf800000
je 0x4970a2
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00401ca0
add esp, 8
add edi, 8
mov dword [esp + 0x44], edi
jmp 0x4970ba
push 1
push 1
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x44]
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.00405440
mov ecx, 0x5bf748
call fcn.004c81c0
mov edi, dword [ebp + 8]
push esi
push eax
mov ecx, edi
call fcn.00494770
mov edx, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, edx
sar ecx, 2
shl ecx, 2
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
fild dword [0x5bf758]
fcomp dword [0x569340]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
fnstsw ax
test ah, 0x41
jne 0x49759e
jmp 0x497120
fild dword [0x5bf754]
mov dword [esp + 0x30], 0
fcomp dword [0x569340]
fnstsw ax
test ah, 0x41
jne 0x49757b
nop
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ecx, 0x5bf748
call fcn.004c81f0
mov edx, dword [ebx]
mov edi, eax
push edi
mov ecx, ebx
call dword [edx + 0x14]
test al, al
je 0x497558
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax + edi*4], esi
jne 0x497558
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
sub eax, ecx
sar eax, 3
cmp eax, esi
jbe 0x497558
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x4971a0
xor esi, esi
jmp 0x4971a0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov byte [esp + 0x8c], 3
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov byte [esp + 0x8c], 5
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, edx
push eax
mov dword [esp + 0x3c], ecx
push ecx
mov ecx, 0x5bf748
mov dword [esp + 0x44], edx
call fcn.004c81f0
lea edi, [ebx + 4]
push eax
mov ecx, edi
call fcn.004b9cc0
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, ebx
call fcn.00492bc0
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00448bf0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, 0x5bf748
call fcn.004c81f0
mov esi, eax
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x14]
test al, al
je 0x4972ea
lea ecx, [esp + 0x58]
push ecx
push esi
mov ecx, edi
call fcn.004b9cc0
push eax
mov ecx, ebx
call fcn.00492bc0
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x4972a4
test al, al
jne 0x4972b6
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
call fcn.00492a00
mov byte [esp + 0x8c], 6
push eax
lea ecx, [esp + 0x50]
call fcn.0040f100
mov byte [esp + 0x8c], 5
mov eax, dword [esp + 0x64]
test eax, eax
je 0x497298
push eax
call fcn.004ed9bb
add esp, 4
mov edx, dword [esp + 0x4c]
cmp edx, dword [esp + 0x50]
je 0x4972ea
jmp 0x4972b6
mov byte [esp + 0xf], al
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x50]
call fcn.0040f100
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00448bf0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
mov ecx, 0x5bf748
call fcn.004c81f0
mov edx, dword [ebx]
mov esi, eax
push esi
mov ecx, ebx
call dword [edx + 0x14]
test al, al
jne 0x497236
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
call fcn.00448c30
fld dword [esp + 0x3c]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x38]
fabs
fst dword [esp + 0x20]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
lea eax, [esp + 0x14]
jnp 0x49731f
lea eax, [esp + 0x20]
fld dword [eax]
call fcn.004ed938
mov ecx, eax
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fild dword [0x5bf744]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jp 0x49750a
mov eax, dword [ebp + 0xc]
inc dword [eax]
xor esi, esi
xor eax, eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], eax
mov byte [esp + 0x8c], 9
mov dword [esp + 0x7c], eax
mov byte [esp + 0x8c], 0xa
cmp ecx, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
jle 0x49747a
mov dword [esp + 0x1c], ecx
mov edi, edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, 0x5bf748
call fcn.004c81f0
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00448bf0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
inc dword [eax + edi*4]
cmp esi, dword [esp + 0x78]
je 0x4973d4
test esi, esi
je 0x4973c8
mov dword [esi], edi
add esi, 4
mov dword [esp + 0x74], esi
jmp 0x497470
mov eax, dword [esp + 0x70]
mov edx, esi
sub edx, eax
mov eax, edx
sar eax, 2
cmp eax, 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x14]
jb 0x4973fe
lea ecx, [esp + 0x28]
mov ecx, dword [ecx]
add ecx, eax
mov dword [esp + 0x14], ecx
je 0x497420
shl ecx, 2
push ecx
call fcn.004ed9ad
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
jmp 0x497422
xor ebx, ebx
mov eax, dword [esp + 0x70]
cmp esi, eax
jne 0x49742e
mov eax, ebx
jmp 0x497443
push edx
push eax
push ebx
call fcn.004ee1e0
mov ecx, dword [esp + 0x24]
add esp, 0xc
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], edi
lea esi, [eax + 4]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49745d
push eax
call fcn.004ed9bb
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [ebx + ecx*4]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edx
dec dword [esp + 0x1c]
jne 0x497390
fild dword [0x5bf744]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4974f1
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x4974db
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x8c], 0xb
test esi, esi
je 0x4974cd
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.0040ecb0
mov byte [esp + 0x8c], 0xc
mov dword [esi + 0xc], 0
mov byte [esp + 0x8c], 0xb
mov byte [esp + 0x8c], 0xa
add dword [edi + 4], 0x10
jmp 0x4974f1
push 1
push 1
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x7c]
push edx
push esi
mov ecx, edi
call fcn.00495e40
mov byte [esp + 0x8c], 5
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49750a
push eax
call fcn.004ed9bb
add esp, 4
mov byte [esp + 0x8c], 3
mov eax, dword [esp + 0x58]
test eax, eax
je 0x497523
push eax
call fcn.004ed9bb
add esp, 4
mov byte [esp + 0x8c], 1
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x49753c
push eax
call fcn.004ed9bb
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, 8
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x497193
xor esi, esi
fld dword [esp + 0x30]
fadd dword [0x56933c]
fst dword [esp + 0x30]
fild dword [0x5bf754]
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x497140
fld dword [esp + 0x34]
fadd dword [0x56933c]
fstp dword [esp + 0x34]
fild dword [0x5bf758]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
je 0x497120
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x4975ba
push eax
call fcn.004ed9bb
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc