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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x518a15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
mov ebx, 0x522d18
xor edi, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x170], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov esi, 0x5294c8
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, 0x591df8
mov byte [esp + 0x17c], 2
call fcn.004bf640
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
lea edx, [eax + ecx]
test edx, edx
jne 0x4a144a
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x44]
mov byte [esp + 0x170], 3
cmp eax, edi
je 0x4a1400
push eax
call fcn.0050b204
add esp, 4
mov esi, 0x520384
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x170], 4
cmp eax, edi
je 0x4a1426
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x170], 5
cmp eax, edi
je 0x4a1896
jmp 0x4a188d
mov dword [esp + 0x60], 0x52954c
mov dword [esp + 0x64], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edi
xor esi, esi
cmp eax, edi
mov byte [esp + 0x170], 6
jle 0x4a148f
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x68]
mov eax, dword [eax + esi*4]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00431490
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x4a1470
lea ecx, [esp + 0xa8]
call fcn.004abc60
lea edx, [esp + 0x60]
lea ecx, [esp + 0xa8]
push edx
mov byte [esp + 0x174], 7
call fcn.004aca70
lea ecx, [esp + 0x88]
call fcn.0047dc50
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x88]
push eax
push ecx
mov byte [esp + 0x178], 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004f3e90
fld qword [0x520dc0]
fcomp qword [esp + 0xa0]
add esp, 8
fnstsw ax
test ah, 0x41
je 0x4a1516
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x88]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004f3e90
fld qword [esp + 0x14]
fcomp qword [esp + 0xa0]
add esp, 8
fnstsw ax
test ah, 0x41
je 0x4a1553
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x88]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004f3e90
fld qword [esp + 0x14]
fcomp qword [esp + 0xa0]
add esp, 8
fnstsw ax
test ah, 0x41
je 0x4a1590
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], 0
cmp eax, edi
mov dword [esp + 0x58], 0x40690000
jle 0x4a161e
mov edx, dword [esp + 0x1c]
mov esi, eax
mov ecx, dword [edx]
fld qword [ecx + 0x180]
fcomp qword [0x5286f0]
fnstsw ax
test ah, 0x41
jne 0x4a15cb
fld qword [ecx + 0x180]
jmp 0x4a15d1
fld qword [0x5286f0]
fcom qword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x4a15e2
fstp qword [esp + 0x54]
jmp 0x4a15e4
fstp st(0)
fld qword [ecx + 0x188]
fcomp qword [0x5286f0]
fnstsw ax
test ah, 0x41
jne 0x4a15ff
fld qword [ecx + 0x188]
jmp 0x4a1605
fld qword [0x5286f0]
fcom qword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x4a1616
fstp qword [esp + 0x54]
jmp 0x4a1618
fstp st(0)
add edx, 4
dec esi
jne 0x4a15ae
lea eax, [esp + 0x2c]
push eax
call fcn.0048ef50
fstp st(0)
add esp, 4
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov byte [esp + 0x170], 9
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
lea edx, [esi + ecx]
lea ecx, [esp + 0x1c]
push edx
call fcn.004de680
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp edx, edi
lea eax, [eax + esi*4]
je 0x4a168a
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x4a1679
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x7c]
call fcn.004de680
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
cmp edx, edi
je 0x4a16b3
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x4a16a6
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x34]
call fcn.004de680
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0x40200000
lea eax, [esp + 0x80]
push edi
push eax
push ecx
push edx
lea ecx, [esp + 0xc4]
call fcn.004acbc0
mov ebx, eax
cmp ebx, edi
je 0x4a178c
mov eax, dword [esp + 0x20]
lea esi, [eax - 1]
cmp esi, edi
jl 0x4a1784
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x20]
test eax, eax
je 0x4a1781
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
call fcn.0048e7d0
fld qword [eax + 0x10]
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 0x41
je 0x4a178c
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
mov edi, dword [edx + 8]
mov ebx, dword [ecx + esi*4]
mov ecx, edx
lea eax, [edi + 1]
push eax
call fcn.004de680
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [edx + edi*4], ebx
mov eax, dword [esp + 0x20]
sub eax, esi
dec eax
je 0x4a1774
shl eax, 2
push eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + esi*4 + 4]
lea edx, [eax + esi*4]
push ecx
push edx
nop
call 0x608e96
add esp, 0xc
mov eax, dword [esp + 0x20]
xor ebx, ebx
dec eax
xor edi, edi
mov dword [esp + 0x20], eax
dec esi
jns 0x4a1704
cmp ebx, edi
je 0x4a164f
mov eax, dword [ebp + 0xc]
push edi
push eax
call fcn.004f3f10
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004f3f10
lea edx, [esp + 0xc0]
push 1
push edx
call fcn.004f3f10
add esp, 0x18
call fcn.004c0ca0
mov ebx, 0x522d18
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x78]
mov byte [esp + 0x170], 0xa
cmp eax, edi
je 0x4a17da
push eax
call fcn.0050b204
add esp, 4
mov esi, 0x520384
lea ecx, [esp + 0x88]
mov dword [esp + 0x74], esi
mov byte [esp + 0x170], 7
call fcn.00507a00
lea ecx, [esp + 0xa8]
mov byte [esp + 0x170], 6
call fcn.004abd30
mov dword [esp + 0x60], 0x52954c
mov eax, dword [esp + 0x64]
mov byte [esp + 0x170], 0xb
cmp eax, edi
je 0x4a182c
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x40], 0x5294c8
mov eax, dword [esp + 0x44]
mov byte [esp + 0x170], 0xc
cmp eax, edi
je 0x4a1851
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x170], 0xd
cmp eax, edi
je 0x4a1872
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x170], 0xe
cmp eax, edi
je 0x4a1896
push eax
call fcn.0050b204
add esp, 4
mov ecx, dword [esp + 0x168]
pop edi
fld qword [0x520dc0]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret