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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66dfa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
cmp eax, edi
je 0x499665
lea ecx, [esp + 0x24]
call fcn.0064dc20
xor esi, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
push 0xa
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0xb8], esi
mov dword [esp + 0x44], 0x69de10
call fcn.0048b670
mov dword [esp + 0xb0], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
push 0xa
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 2
mov dword [esp + 0x58], 0x69dcec
call fcn.0048b670
mov ebx, dword [edi + 0xa0]
mov byte [esp + 0xb0], 3
cmp ebx, esi
mov dword [esp + 0x10], ebx
je 0x499468
mov ecx, dword [ebp + 8]
call fcn.004da3a0
mov ecx, dword [edi + 0x80]
mov esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov edx, dword [esi]
mov ecx, esi
fstp qword [esp + 0x64]
call dword [edx + 0xb8]
fstp qword [esp + 0x6c]
xor eax, eax
test ebx, ebx
mov dword [esp + 0xc], eax
jle 0x4993f1
mov ecx, dword [edi + 0x9c]
mov esi, dword [ecx + eax*4]
mov ecx, esi
call fcn.0050ba10
cmp eax, 1
jne 0x499205
lea edx, [esp + 0x90]
mov ecx, esi
push edx
call fcn.004ac900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi + 0x80]
mov dword [esp + 0x38], edx
sub esp, 0x18
mov dword [esp + 0x4c], ecx
mov ebx, dword [eax]
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0064dc70
mov ecx, dword [edi + 0x80]
call dword [ebx + 0x108]
test eax, eax
je 0x4993dc
cmp eax, 5
je 0x4993dc
cmp eax, 6
je 0x4993dc
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
mov ebx, eax
inc eax
push eax
lea ecx, [esp + 0x44]
call fcn.0048b670
mov eax, dword [esp + 0x40]
push esi
mov dword [eax + ebx*4], esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0048f4b0
mov ecx, esi
call fcn.0050ba90
mov ecx, dword [eax + 4]
push ebx
push edi
mov dword [ecx], ebx
mov ecx, esi
call fcn.004bd1e0
jmp 0x4993dc
test eax, eax
jne 0x4993dc
lea edx, [esp + 0x78]
mov ecx, esi
push edx
call fcn.004ac900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi + 0x80]
mov dword [esp + 0x38], edx
sub esp, 0x18
mov dword [esp + 0x4c], ecx
mov ebx, dword [eax]
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0064dc70
mov ecx, dword [edi + 0x80]
call dword [ebx + 0x108]
test eax, eax
je 0x49935a
cmp eax, 5
je 0x49935a
cmp eax, 6
je 0x49935a
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
mov ebx, eax
inc eax
push eax
lea ecx, [esp + 0x44]
call fcn.0048b670
mov eax, dword [esp + 0x40]
push esi
mov dword [eax + ebx*4], esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0048f4b0
push ebx
mov ecx, esi
call fcn.004ac930
mov ecx, esi
call fcn.0050ba90
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
sub esp, 0x18
lea eax, [esp + 0x3c]
mov dword [ecx], ebx
mov ebx, dword [edx]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0064dc70
mov ecx, dword [esp + 0x38]
call dword [ebx + 0xc0]
fstp qword [esp + 0x14]
fld qword [esp + 0x6c]
fmul qword [0x691ac8]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x499327
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.004bd1e0
jmp 0x4993dc
fld qword [esp + 0x6c]
fsub qword [esp + 0x14]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
push edx
push edi
mov byte [ecx], 1
mov ecx, esi
call fcn.004bd1e0
jmp 0x4993dc
mov eax, dword [edi + 0x80]
sub esp, 0x18
lea edx, [esp + 0x3c]
mov ecx, esp
mov ebx, dword [eax]
mov dword [esp + 0x2c], esp
push edx
call fcn.0064dc70
mov ecx, dword [edi + 0x80]
call dword [ebx + 0xc0]
fstp qword [esp + 0x14]
fld qword [esp + 0x64]
fmul qword [0x691ac8]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4993ba
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov edx, dword [eax + 4]
mov byte [edx], 0
jmp 0x4993dc
fld qword [esp + 0x64]
fsub qword [esp + 0x14]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0050ba40
mov ecx, esi
call fcn.0050bc60
mov eax, dword [eax + 4]
mov byte [eax], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x499134
mov esi, dword [esp + 0x44]
test esi, esi
mov dword [esp + 0x10], esi
je 0x499466
mov ecx, edi
call fcn.0048fc00
xor ebx, ebx
mov dword [esp + 0x20], eax
test esi, esi
jle 0x499466
mov ecx, dword [esp + 0x40]
xor eax, eax
mov esi, dword [ecx + ebx*4]
mov ecx, dword [edi + 0xa0]
test ecx, ecx
jle 0x499448
mov edx, dword [edi + 0x9c]
cmp esi, dword [edx]
je 0x499435
inc eax
add edx, 4
cmp eax, ecx
jl 0x499427
jmp 0x499448
cmp eax, 0xffffffff
je 0x499448
push 1
push eax
lea ecx, [edi + 0x98]
call fcn.005f7dc0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x49945d
mov edx, dword [esp + 0x40]
mov eax, dword [edx + ebx*4]
push eax
call fcn.004d9280
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x49940e
xor esi, esi
mov ecx, dword [edi + 0x8c]
cmp ecx, 2
mov dword [esp + 0x10], ecx
jle 0x4995e8
mov eax, 2
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0x88]
lea edx, [esp + 0x78]
push edx
mov esi, dword [ecx + eax*4]
mov ecx, esi
call fcn.004ac900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi + 0x80]
mov dword [esp + 0x38], edx
sub esp, 0x18
mov dword [esp + 0x4c], ecx
mov ebx, dword [eax]
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0064dc70
mov ecx, dword [edi + 0x80]
call dword [ebx + 0x108]
test eax, eax
je 0x49952d
cmp eax, 5
je 0x49952d
cmp eax, 6
je 0x49952d
mov eax, dword [esp + 0x58]
push 0xffffffffffffffff
mov ebx, eax
inc eax
push eax
lea ecx, [esp + 0x58]
call fcn.0048b670
mov eax, dword [esp + 0x54]
push esi
mov dword [eax + ebx*4], esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0048ee90
push ebx
mov ecx, esi
call fcn.004ac930
push ebx
push edi
mov ecx, esi
call fcn.004bd1e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x499484
mov eax, dword [esp + 0x58]
xor esi, esi
mov ebx, eax
cmp eax, esi
mov dword [esp + 0x10], ebx
je 0x4995e8
mov ecx, edi
call fcn.0048fc00
test ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], esi
jle 0x4995e8
mov ecx, dword [esp + 0x54]
xor eax, eax
mov ebx, dword [ecx + esi*4]
mov ecx, dword [edi + 0x8c]
test ecx, ecx
jle 0x4995bc
mov esi, dword [edi + 0x88]
mov edx, esi
cmp ebx, dword [edx]
je 0x499592
inc eax
add edx, 4
cmp eax, ecx
jl 0x499584
jmp 0x4995bc
cmp eax, 0xffffffff
je 0x4995bc
sub ecx, eax
dec ecx
je 0x4995b6
lea edx, [ecx*4]
lea ecx, [esi + eax*4 + 4]
push edx
lea edx, [esi + eax*4]
push ecx
push edx
nop
call fcn.0081d073
add esp, 0xc
dec dword [edi + 0x8c]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4995d7
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0xc]
mov edx, dword [eax + esi*4]
push edx
call fcn.004d9280
jmp 0x4995db
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
mov dword [esp + 0xc], esi
jl 0x499569
mov ecx, edi
call fcn.0048f100
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.0048f100
mov ebx, eax
push esi
mov ecx, ebx
call fcn.004bbfd0
push 0
mov ecx, esi
call fcn.004bb730
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
push edi
call fcn.004bd1e0
mov dword [esp + 0x50], 0x69dcd8
mov eax, dword [esp + 0x54]
mov byte [esp + 0xb0], 4
test eax, eax
je 0x499639
push eax
call fcn.0065e732
add esp, 4
mov dword [esp + 0x50], 0x691080
mov dword [esp + 0x3c], 0x69de4c
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb0], 5
test eax, eax
je 0x499665
push eax
call fcn.0065e732
add esp, 4
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4