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

Disassembly:
push 0xffffffffffffffff
push 0x1039cef8
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105623f8]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x1c]
lea ebp, [ebx + 0x18]
push eax
mov ecx, ebp
call fcn.004a379f
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebp
call fcn.004a381f
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x24]
call fcn.004a23ef
test al, al
jne 0x4a5ba8
jmp 0x4a596f
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14c]
cmp dword [esi + 0x10], edi
jne 0x4a5b6b
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 4]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xdc], ecx
mov ecx, ebp
mov dword [esp + 0xd8], eax
call fcn.004a521f
lea eax, [ebp + 0xc]
mov byte [ebp + 8], 1
test eax, eax
je 0x4a59d6
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc4], ecx
lea ecx, [esp + 0x100]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, ebp
mov dword [esp + 0xb4], esi
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], eax
call fcn.004a381f
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x84], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 0x38]
lea eax, [esp + 0x5c]
mov dword [esp + 0x8c], ecx
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x94], edx
call fcn.004a23ef
test al, al
jne 0x4a5b2c
lea ecx, [esp + 0x94]
push ecx
mov ecx, ebp
call fcn.004a286f
test al, al
je 0x4a5b2c
inc dword [ebp + 4]
mov byte [ebp + 0x50], 1
mov ecx, ebp
call fcn.004a521f
lea edx, [esp + 0x58]
push edx
mov ecx, ebp
mov byte [ebp + 8], 0
call fcn.004a379f
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 4]
mov ebx, dword [esp + 0x14]
mov ecx, 0xf
lea esi, [esp + 0x58]
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14c]
cmp dword [esp + 0x18], eax
je 0x4a5baf
jmp 0x4a5b84
add esi, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
call fcn.004a28df
lea ecx, [esp + 0x1c]
call fcn.004a340f
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.004a381f
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004a23ef
test al, al
je 0x4a596f
jmp 0x4a5baf
mov edi, dword [esp + 0x14c]
mov edx, dword [ebx + 0x10]
sub edx, dword [ebx + 0xc]
sar edx, 4
cmp edi, edx
jb 0x4a5c12
push 0x1f
xor esi, esi
push 0x104713c4
lea ecx, [esp + 0xec]
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], esi
mov byte [esp + 0xf0], 0
call fcn.0040517f
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], esi
call fcn.004c07cf
push 0x104f2130
lea ecx, [esp + 0x20]
push ecx
call fcn.00776cc8
lea edx, [esp + 0x150]
push edx
mov ecx, ebp
call fcn.004a540f
mov dword [eax], edi
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 4
cmp edi, eax
jb 0x4a5c35
call fcn.00776e71
mov ecx, dword [esp + 0x150]
shl edi, 4
add edi, dword [ebx + 0xc]
mov dword [edi], ecx
mov edx, dword [esp + 0x154]
mov dword [edi + 4], edx
mov eax, dword [esp + 0x158]
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x15c]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 0x14