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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x2c], bl
or ecx, 0xffffffff
mov dword [esi + 0x28], ecx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ecx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ecx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ecx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ecx
mov byte [esi + 0x6c], bl
mov dword [esi + 0x180], ebx
mov dword [esi + 0x184], ebx
lea eax, [esi + 0x20]
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ecx
mov byte [esi + 0x7c], bl
mov dword [esi + 0x188], ebx
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ecx
mov byte [esi + 0x8c], bl
mov dword [esi + 0x190], ebx
mov dword [esi + 0x194], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ecx
mov byte [esi + 0x9c], bl
mov dword [esi + 0x198], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ecx
mov byte [esi + 0xac], bl
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ecx
mov byte [esi + 0xbc], bl
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b0], ebx
mov dword [ebp - 0x10], 2
lea edi, [ebx + 1]
cmp byte [eax + 0xc], bl
je 0x4a322a
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax]
mov dword [esi + ecx*8 + 0x160], edx
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 4]
mov dword [esi + ecx*8 + 0x164], edx
add dword [esi + 0x1b0], edi
cmp byte [eax + 0x1c], bl
je 0x4a3255
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x10]
mov dword [esi + ecx*8 + 0x160], edx
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x14]
mov dword [esi + ecx*8 + 0x164], edx
add dword [esi + 0x1b0], edi
cmp byte [eax + 0x2c], bl
je 0x4a3280
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x20]
mov dword [esi + ecx*8 + 0x160], edx
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x24]
mov dword [esi + ecx*8 + 0x164], edx
add dword [esi + 0x1b0], edi
cmp byte [eax + 0x3c], bl
je 0x4a32ab
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x30]
mov dword [esi + ecx*8 + 0x160], edx
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x34]
mov dword [esi + ecx*8 + 0x164], edx
add dword [esi + 0x1b0], edi
cmp byte [eax + 0x4c], bl
je 0x4a32d6
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x40]
mov dword [esi + ecx*8 + 0x160], edx
mov ecx, dword [esi + 0x1b0]
mov edx, dword [eax + 0x44]
mov dword [esi + ecx*8 + 0x164], edx
add dword [esi + 0x1b0], edi
add eax, 0x50
sub dword [ebp - 0x10], edi
jne 0x4a3200
mov eax, dword [esi + 0x1c4]
cmp eax, 4
ja case.default.0x4a32f1
jmp dword [eax*4 + 0x4a3558]
cmp dword [esi + 0x1b0], ebx
jne case.default.0x4a32f1
mov dword [esi + 0x1c4], ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1b0]
cmp eax, edi
jne 0x4a3351
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
mov dword [esi + 0x1d4], eax
mov eax, ecx
mov dword [esi + 0x1d8], ecx
mov ecx, dword [esi + 0x160]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x1c4], edi
call edx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4a33db
mov ecx, dword [esi + 0x160]
mov dword [esi + 0x1c4], eax
mov eax, dword [esi + 0x168]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
add eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x16c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x164]
fisub dword [ebp - 0xc]
mov dword [ebp - 8], ecx
add eax, ecx
fild dword [ebp - 4]
cdq
sub eax, edx
mov ebx, eax
sar edi, 1
sar ebx, 1
fisub dword [ebp - 8]
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1cc], ebx
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
call fcn.004ac3ca
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
mov eax, dword [esi]
mov edx, dword [eax]
fst dword [esi + 0x1d0]
push ecx
fstp dword [esp]
push ebx
push edi
mov ecx, esi
call edx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne case.default.0x4a32f1
mov ecx, dword [esi + 0x164]
mov edx, dword [esi + 0x160]
mov dword [esi + 0x1c4], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
push ecx
push edx
mov ecx, esi
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1b0], 3
jne 0x4a342d
mov eax, dword [esi + 0x164]
mov ecx, dword [esi + 0x160]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
push ecx
mov ecx, esi
call edx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
xor eax, eax
cmp dword [esi + 0x1b0], ebx
setle al
dec eax
and eax, 4
mov dword [esi + 0x1c4], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1b0], edi
jne 0x4a348a
mov ecx, dword [esi + 0x160]
mov edx, dword [esi + 0x164]
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x1d4], ecx
mov ecx, edx
mov dword [esi + 0x1d8], edx
mov edx, dword [esi + 0x160]
push ecx
push edx
mov ecx, esi
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1d8]
mov ecx, dword [esi + 0x1d4]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push ecx
mov ecx, esi
call edx
mov dword [esi + 0x1c4], ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 2
cmp dword [esi + 0x1b0], eax
jne 0x4a352e
mov edi, dword [esi + 0x168]
mov ecx, dword [esi + 0x16c]
mov edx, dword [esi + 0x164]
mov ebx, dword [esi]
mov dword [esi + 0x1c4], eax
mov eax, dword [esi + 0x160]
mov dword [ebp - 0x10], edi
fild dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
fisub dword [ebp - 0xc]
fild dword [ebp - 4]
fisub dword [ebp - 8]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
call fcn.004ac3ca
fstp dword [ebp - 0x10]
mov eax, dword [ebp - 4]
fld dword [ebp - 0x10]
add eax, dword [ebp - 8]
push ecx
cdq
fstp dword [esp]
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
push eax
lea eax, [edi + edx]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebx + 4]
mov ecx, esi
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esi + 0x1b0]
sub ecx, edi
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 4
mov dword [esi + 0x1c4], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret