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

Disassembly:
sub esp, 0x40
mov edx, dword [esp + 0x44]
push ebx
push ebp
push esi
mov eax, dword [edx + 0x14]
mov ebx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
mov ebp, dword [edx + 8]
sub ebp, dword [edx]
mov edx, 1
sub ebx, dword [eax + 4]
push edi
mov edi, dword [eax + 8]
sub edi, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], eax
mov esi, eax
je 0x4a205d
jmp 0x4a2040
mov eax, dword [ecx + 0x78]
lea ecx, [ecx + 0x7c]
sub eax, dword [ecx - 0xc]
cmp edx, eax
jge 0x4a204f
mov edx, eax
mov eax, dword [ecx]
sub eax, dword [ecx - 8]
cmp edx, eax
jge 0x4a205a
mov edx, eax
dec esi
jne 0x4a2040
lea eax, [edx + 5]
shl eax, 4
push 0x10
push eax
call fcn.004176d3
add esp, 8
mov dword [esp + 0x30], eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x40], eax
je 0x4a22e1
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 4]
mov eax, dword [edx + 8]
sub eax, dword [edx]
mov esi, dword [edx + 0x18]
mov edx, edi
imul ecx, eax
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x18]
add ebx, 0x7c
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
sub eax, ecx
sub edi, dword [ebx + 4]
mov dword [esp + 0x1c], eax
sub eax, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], eax
and ecx, 0x80000001
jns 0x4a20d7
dec ecx
or ecx, 0xfffffffe
inc ecx
mov dword [esp + 0x3c], ecx
mov ebx, edi
mov dword [esp + 0x28], edi
test edi, edi
jle 0x4a21e2
mov edi, dword [esp + 0x1c]
mov eax, ebp
dec edi
shl eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edi
nop
push eax
push ebp
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004a3640
lea eax, [esp + 0x40]
push eax
call fcn.004a33c0
add esp, 0x14
cmp ebx, 4
jl 0x4a2179
mov edx, edi
test edx, edx
js 0x4a21be
mov ecx, dword [esp + 0x30]
lea eax, [edx + ebp*2]
add eax, ebp
add ecx, 8
lea edi, [esi + eax*4]
lea eax, [edx + ebp*2]
lea ebx, [esi + eax*4]
mov eax, edx
shl eax, 4
add ecx, eax
lea eax, [edx + ebp]
lea eax, [esi + eax*4]
jmp 0x4a2150
fld dword [ecx - 8]
fstp dword [esi + edx*4]
fld dword [ecx - 4]
fstp dword [eax]
fld dword [ecx]
sub eax, 4
fstp dword [ebx]
fld dword [ecx + 4]
sub ebx, 4
fstp dword [edi]
sub edi, 4
sub ecx, 0x10
dec edx
jns 0x4a2150
mov ebx, dword [esp + 0x28]
jmp 0x4a21ba
mov ecx, edi
test ecx, ecx
js 0x4a21be
mov edx, dword [esp + 0x30]
lea eax, [ecx + ebp]
lea edi, [esi + eax*4]
add edx, 4
mov eax, ecx
shl eax, 4
add edx, eax
mov eax, ebx
dec eax
je 0x4a21ab
dec eax
je 0x4a21a7
dec eax
jne 0x4a21b1
fld dword [edx + 4]
lea eax, [ecx + ebp*2]
fstp dword [esi + eax*4]
fld dword [edx]
fstp dword [edi]
fld dword [edx - 4]
fstp dword [esi + ecx*4]
sub edx, 0x10
sub edi, 4
dec ecx
jns 0x4a2193
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea ecx, [ebp*4]
add esi, dword [esp + 0x2c]
sub ebx, 4
sub eax, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
test ebx, ebx
jg 0x4a2100
mov esi, dword [esp + 0x58]
mov eax, esi
sub eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
and eax, 0x80000001
jns 0x4a2203
dec eax
or eax, 0xfffffffe
inc eax
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
mov ebp, edi
mov dword [esp + 0x4c], eax
mov ebx, dword [edx + 0x18]
mov dword [esp + 0x28], ebx
test edi, edi
jle 0x4a22cb
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.004a3740
lea eax, [esp + 0x4c]
push eax
call fcn.004a33c0
add esp, 0x10
cmp ebp, 4
jl 0x4a2274
test esi, esi
jle 0x4a22b1
mov ecx, dword [esp + 0x30]
mov edx, ebx
shl edi, 2
nop
mov eax, dword [ecx]
lea ecx, [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ecx - 8]
mov dword [edx + 8], eax
mov eax, dword [ecx - 4]
mov dword [edx + 0xc], eax
add edx, edi
dec esi
jne 0x4a2250
mov edi, dword [esp + 0x10]
jmp 0x4a22ad
test esi, esi
jle 0x4a22b1
mov esi, dword [esp + 0x30]
mov edi, ebx
mov ebx, dword [esp + 0x58]
lea eax, [ebp*4]
push eax
push esi
push edi
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add esi, 0x10
lea eax, [ecx*4]
add edi, eax
dec ebx
jne 0x4a2282
mov ebx, dword [esp + 0x28]
mov edi, ecx
mov esi, dword [esp + 0x58]
add ebx, 0x10
sub ebp, 4
mov dword [esp + 0x28], ebx
test ebp, ebp
jg 0x4a2224
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
dec dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x58]
jne 0x4a2085
mov eax, dword [esp + 0x30]
push eax
call fcn.0041771d
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret