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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
xor edx, edx
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
cmp edi, edx
je 0x4a77b6
mov esi, dword [ebp + 0xc]
lea eax, [edx + 0x65]
cmp esi, edx
je 0x4a6caf
movzx eax, byte [esi]
mov dword [esp + 0x1c], eax
add eax, 0xffffffed
cmp eax, 0x8c
ja 0x4a781c
movzx eax, byte [eax + 0x100801ac]
jmp dword [eax*4 + 0x10080144]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
mov dword [esp + 0x34], eax
mov eax, edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edx
call fcn.0044e18a
mov esi, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x4a7898
mov eax, esi
mov ecx, 0xc
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
mov esi, ebx
call fcn.0045ef1a
mov dl, byte [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x6c]
add esp, 4
and dword [esp + 0x3c], 0xffffefff
mov byte [esp + 0x5e], dl
mov byte [esp + 0x38], 0x9f
mov byte [esp + 0x68], 0x4f
mov dword [esp + 0x74], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
xor esi, esi
cmp eax, esi
jle 0x4a79e0
mov edx, dword [esp + 0xc]
dec eax
shr eax, 1
inc eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
nop
inc dword [ebx + 0x64]
cmp dword [esp + 0x28], 0
je 0x4a78d0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
jmp 0x4a78da
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov esi, dword [edi + 0x18]
mov eax, dword [esi + 0x6c]
lea edx, [eax - 1]
lea ecx, [eax + 1]
mov dword [esp + 0x1c], eax
mov dword [esi + 0x6c], ecx
test eax, edx
jne 0x4a7927
mov edi, dword [esi]
mov ebx, dword [esi + 0x70]
lea ecx, [eax*8 + 4]
mov eax, edi
call fcn.00448e2a
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4a7919
mov eax, ebx
mov ecx, edi
call fcn.0043e91a
mov eax, dword [esp + 0x30]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 0x70]
test esi, esi
je 0x4a7935
mov dword [esi + eax*4], 0xffffffff
mov eax, dword [esp + 0x20]
or esi, 0xffffffff
sub esi, dword [esp + 0x1c]
push 8
push esi
push eax
push ebx
call fcn.004a689a
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x18]
push ecx
push eax
push ebx
call fcn.004a85ea
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
add esp, 0x1c
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x54], eax
jg 0x4a797b
push edi
call fcn.0044aaba
add esp, 4
test eax, eax
jne 0x4a79a6
inc dword [edi + 0x20]
mov eax, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x10
mov eax, ebx
call fcn.0043605a
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, esi
js 0x4a79c4
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x4a79c4
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
add dword [esp + 0xc], 0x30
dec eax
dec dword [esp + 0x14]
mov dword [ecx + 0x58], eax
jne 0x4a78ba
mov ecx, dword [esp + 0x18]
xor esi, esi
test cl, 1
je 0x4a7a0d
mov edx, dword [ebp + 0x10]
inc dword [ebx + 0x64]
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax*8 - 0x18]
push eax
push ebx
call fcn.004a85ea
add esp, 0xc
mov eax, ebx
call fcn.0043605a
jmp 0x4a7a49
mov ebx, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], ebx
jg 0x4a7a25
push edi
call fcn.0044aaba
add esp, 4
test eax, eax
jne 0x4a7a49
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov word [eax], 0x1c
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x10]
js 0x4a7a62
mov edx, dword [ecx + 0x70]
cmp edx, esi
je 0x4a7a62
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x24]
dec edx
mov dword [ecx + 0x58], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret