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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x5527f0]
xor eax, esp
mov dword [esp + 0x48], eax
and dword [esp + 0x44], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
xor eax, eax
push ebx
mov dword [esp + 0x44], 2
mov ebx, ecx
push esi
push edi
lea edi, [esp + 0x2c]
mov edx, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esp + 0x1c], 0
lea edi, [esp + 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, fcn.004035b8
and dword [esp + 0x28], 0
and dword [esp + 0x18], 0
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4a9a48
lea eax, [esp + eax + 0x2c]
mov dword [esp + 0x18], eax
mov byte [eax], 0
xor esi, esi
cmp dword [edi - 0x18], esi
je 0x4a9abe
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x28]
push eax
lea eax, [edi - 0x10]
push eax
mov eax, dword [edi - 0x14]
add eax, ecx
mov ecx, edx
push eax
call fcn.004aeffd
test eax, eax
js 0x4a9b9a
cmp dword [esp + 0x28], 0
jne 0x4a9a91
mov ecx, dword [esp + 0x14]
inc esi
mov edx, dword [esp + 0x10]
add ecx, 0xc
mov dword [esp + 0x14], ecx
cmp esi, dword [edi - 0x18]
jne 0x4a9a55
jmp 0x4a9abe
mov esi, dword [edi - 4]
mov ecx, esi
push edi
call dword [0x5552f8]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
call esi
test eax, eax
js 0x4a9b9a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x4a9abe
mov byte [eax], 1
mov esi, dword [esp + 0x1c]
add edi, 0x24
add esi, 0x24
mov dword [esp + 0x1c], esi
cmp esi, 0x90
jne 0x4a9a2b
push 0x10
lea eax, [esp + 0x40]
push 0x428024
push eax
call fcn.0052ccf0
push ecx
mov edi, esp
lea esi, [esp + 0x3c]
neg eax
lea ecx, [esp + 0x4c]
push 0
sbb eax, eax
movsd dword es:[edi], dword [esi]
and eax, ecx
mov ecx, dword [ebx + 0x5c]
push eax
push dword [esp + 0x64]
movsd dword es:[edi], dword [esi]
push dword [ebx + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049cfdb
test eax, eax
jns 0x4a9b35
cmp eax, 0xc00000bd
jne 0x4a9b9a
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004b2460
test eax, eax
js 0x4a9b9a
lea edi, [ebx + 0x78]
jmp 0x4a9b90
mov eax, dword [esp + 0x50]
lea esi, [esp + 0x2c]
add ebx, 0x78
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ebx
test eax, eax
je 0x4a9b90
cmp dword [eax], 0
je 0x4a9b90
sub esp, 0x10
lea esi, [esp + 0x3c]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x5c]
call fcn.0049d0f3
mov edi, ebx
test eax, eax
jns 0x4a9b90
cmp eax, 0xc00000bd
jne 0x4a9b9a
push dword [esp + 0x50]
mov ecx, esi
push dword [esp + 0x24]
push 0xc0150006
call fcn.004b24e0
test eax, eax
js 0x4a9b9a
lea esi, [esp + 0x2c]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b1d0
mov esp, ebp
pop ebp
ret 8