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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x1c], al
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
call fcn.0040d4f7
lea esi, [ebx + 0x10]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4a13ba
call fcn.0054b876
mov dword [ebp - 0x18], esi
mov esi, edi
mov dword [ebp - 0x14], esi
lea edi, [ebx + 0x10]
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [ebp - 0x10], eax
jbe 0x4a13d5
call fcn.0054b876
cmp dword [ebp - 0x18], 0
je 0x4a13e0
cmp dword [ebp - 0x18], edi
je 0x4a13e5
call fcn.0054b876
cmp esi, dword [ebp - 0x10]
je 0x4a1441
cmp dword [ebp - 0x18], 0
jne 0x4a13f5
call fcn.0054b876
mov eax, dword [ebp - 0x18]
cmp esi, dword [eax + 8]
jb 0x4a1402
call fcn.0054b876
mov esi, dword [esi]
test esi, esi
je 0x4a1431
mov eax, esi
call fcn.0049faf3
add dword [ebp + 8], eax
mov eax, esi
call fcn.0049fb78
add dword [ebp - 4], eax
lea eax, [esi + 0x30]
call fcn.004bca88
add dword [ebp - 8], eax
mov eax, esi
call fcn.0049fc00
add dword [ebp - 0xc], eax
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x18]
call fcn.004f20aa
mov esi, dword [ebp - 0x14]
jmp 0x4a13c2
lea eax, [ebp - 0x20]
call fcn.0040d1d9
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [0x8b6824]
test eax, eax
je 0x4a1471
mov eax, dword [eax + 8]
jmp 0x4a1473
xor eax, eax
test eax, eax
mov dword [edi + 0x10], eax
jne 0x4a1481
mov dword [edi + 0x10], 0x80000
push 0
mov esi, 0x4000
push esi
push dword [ebx + 0x7c]
push dword [ebx + 0x78]
call fcn.0054eaf0
mov dword [edi + 0x18], eax
lea eax, [ebx + 0x20]
mov dword [edi + 0x1c], edx
call fcn.004a1887
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp + 8], eax
push 0
fild dword [ebp + 8]
push esi
fmul qword [0x7cb698]
fstp dword [edi + 0x20]
push dword [ebx + 0xdc]
push dword [ebx + 0xd8]
call fcn.0054eaf0
mov dword [edi + 0x28], eax
lea eax, [ebx + 0x80]
mov dword [edi + 0x2c], edx
call fcn.004a1887
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp + 8], eax
push 0
fild dword [ebp + 8]
push esi
fmul qword [0x7cb698]
fstp dword [edi + 0x30]
push dword [ebx + 0x7c]
push dword [ebx + 0x78]
call fcn.0054eaf0
or eax, edx
je 0x4a155b
push 0
push esi
push dword [ebx + 0x7c]
push dword [ebx + 0x78]
call fcn.0054eaf0
push 0
push esi
push dword [ebx + 0xdc]
mov dword [ebp - 0x18], eax
push dword [ebx + 0xd8]
mov dword [ebp - 0x14], edx
call fcn.0054eaf0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
push 0
push 0x3e8
sbb eax, edx
push eax
push ecx
call fcn.0054eab0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edx
push eax
call fcn.0054eaf0
movzx eax, ax
jmp 0x4a155d
xor eax, eax
push 0
push esi
mov word [edi + 0x34], ax
push dword [ebx + 0x13c]
push dword [ebx + 0x138]
call fcn.0054eaf0
mov dword [edi + 0x38], eax
lea eax, [ebx + 0xe0]
mov dword [edi + 0x3c], edx
call fcn.004a1887
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp + 8], eax
push 0
fild dword [ebp + 8]
push esi
fmul qword [0x7cb698]
fstp dword [edi + 0x40]
push dword [ebx + 0x19c]
push dword [ebx + 0x198]
call fcn.0054eaf0
mov dword [edi + 0x48], eax
lea eax, [ebx + 0x140]
mov dword [edi + 0x4c], edx
call fcn.004a1887
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp + 8], eax
mov esi, ebx
fild dword [ebp + 8]
fmul qword [0x7cb698]
fstp dword [edi + 0x50]
call fcn.004a12ac
mov word [edi + 0x54], ax
pop edi
pop esi
pop ebx
leave
ret 8