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

Disassembly:
mov eax, 0x5c
call fcn.004b81c0
mov edx, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x74]
mov eax, dword [ebx]
push ebp
mov ebp, dword [ebx + eax*4 + 4]
inc eax
mov dword [ebx], eax
mov ecx, dword [ebx + eax*4 + 4]
inc eax
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
mov dword [ebx], eax
call fcn.0049c790
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a3a3f
mov eax, dword [esp + 0x68]
push 1
push eax
call fcn.0049cb40
add esp, 8
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
push esi
push edi
mov edi, dword [esp + 0x7c]
push ebx
push edi
push ebp
call fcn.004a6ab0
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4a3cac
call fcn.0049c860
mov ecx, dword [esp + 0x74]
push ebx
push edi
mov esi, eax
push ecx
push esi
mov dword [esp + 0x3c], esi
call fcn.0049f3a0
add esp, 0x10
test eax, eax
je 0x4a3cac
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ebx
push edx
push ebp
push edi
push esi
push esi
push eax
call fcn.004a6970
add esp, 0x1c
test eax, eax
je 0x4a3cac
mov eax, dword [esp + 0x18]
cmp eax, 0x11
jg 0x4a3ab5
mov dword [esp + 0x80], 1
jmp 0x4a3add
cmp eax, 0x100
jl 0x4a3ac9
mov dword [esp + 0x80], 5
jmp 0x4a3add
xor ecx, ecx
cmp eax, 0x80
setge cl
add ecx, 3
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x80]
dec ecx
mov eax, 1
shl eax, cl
mov esi, 1
mov dword [esp + 0x1c], eax
cmp eax, esi
jle 0x4a3b38
lea esp, [esp]
call fcn.0049c860
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push ebx
push edx
mov edx, dword [esp + esi*4 + 0x30]
push ebp
push edi
push ecx
push edx
push eax
mov dword [esp + esi*4 + 0x48], eax
call fcn.004a6970
add esp, 0x1c
test eax, eax
je 0x4a3cac
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4a3b00
cmp esi, 0x10
jge 0x4a3b47
mov ecx, 0x10
sub ecx, esi
lea edi, [esp + esi*4 + 0x2c]
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x70]
push 1
dec esi
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], esi
call fcn.0049cb40
add esp, 8
test eax, eax
je 0x4a3cac
jmp 0x4a3b80
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
lea esp, [esp]
mov eax, dword [esp + 0x78]
push esi
push eax
call fcn.0049cdd0
add esp, 8
test eax, eax
jne 0x4a3bc6
cmp dword [esp + 0x24], eax
jne 0x4a3bb7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
push ebx
push ecx
push ebp
push edx
push edi
push edi
push edi
call fcn.004a6970
add esp, 0x1c
test eax, eax
je 0x4a3cac
test esi, esi
je 0x4a3ca4
dec esi
mov dword [esp + 0x14], esi
jmp 0x4a3b80
mov ebp, 1
mov esi, ebp
mov dword [esp + 0x18], 0
cmp dword [esp + 0x80], esi
jle 0x4a3c27
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x1c], eax
jmp 0x4a3bf4
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x4a3c27
push eax
mov eax, dword [esp + 0x7c]
push eax
call fcn.0049cdd0
add esp, 8
test eax, eax
je 0x4a3c19
mov ecx, esi
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x18], esi
shl ebp, cl
or ebp, 1
dec dword [esp + 0x1c]
inc esi
cmp esi, dword [esp + 0x80]
jl 0x4a3bf0
mov eax, dword [esp + 0x18]
inc eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
jne 0x4a3c66
xor esi, esi
test eax, eax
jle 0x4a3c66
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
push ebx
push ecx
push edx
push eax
push edi
push edi
push edi
call fcn.004a6970
add esp, 0x1c
test eax, eax
je 0x4a3cac
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4a3c40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
push ebx
push ecx
push edx
push eax
sar ebp, 1
mov ecx, dword [esp + ebp*4 + 0x3c]
push ecx
push edi
push edi
call fcn.004a6970
add esp, 0x1c
test eax, eax
je 0x4a3cac
or edx, 0xffffffff
sub edx, dword [esp + 0x18]
mov dword [esp + 0x24], 0
add dword [esp + 0x14], edx
jns 0x4a3b71
mov dword [esp + 0x28], 1
add dword [ebx], 0xfffffffe
xor esi, esi
mov eax, dword [esp + esi*4 + 0x2c]
test eax, eax
je 0x4a3cc2
push eax
call fcn.0049c7e0
add esp, 4
inc esi
cmp esi, 0x10
jl 0x4a3cb1
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
test byte [ecx], 1
je 0x4a404b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push 0
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.004a3ce0
add esp, 0x18
ret
mov dword [esp + 0x10], eax
jmp 0x4a39e0