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

Disassembly:
mov eax, dword [0x8107a4]
mov ecx, dword [0x84a7c8]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0x3000b
push eax
call dword [ecx + 0x108]
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
jne 0x4a8153
mov edx, dword [0x8107a4]
mov dword [esp + 0x10], 2
push edx
push 0x80000013
call fcn.004f8220
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
call fcn.004dd0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea eax, [esi + 0x10]
mov byte [esi], 7
push eax
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov dword [esi + 4], ebx
call fcn.004a9930
mov edi, 2
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov ecx, dword [0x810804]
mov edx, dword [0x84a7c8]
push 0x3000b
push ecx
call dword [edx + 0x108]
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
jne 0x4a81d2
push 4
push 0x80000013
mov dword [esp + 0x18], edi
call fcn.004f8220
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
call fcn.004dd0b0
mov ecx, dword [0x84a7c8]
push esi
call dword [ecx + 0x10c]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea eax, [ebp + 0x38]
mov ecx, 8
mov dword [ebp + 0x3c], eax
lea edi, [ebp + 0x10]
mov dword [eax], eax
lea eax, [ebp + 0x40]
mov dword [ebp + 0x44], eax
mov dword [ebp], 0xffffffff
mov dword [eax], eax
xor eax, eax
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x78], ebx
mov word [ebp + 0x82], bx
mov word [ebp + 0x84], bx
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
lea edx, [ebp + 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x11c]
mov dword [ebp + 0x30], ebx
lea ecx, [eax + 0xc]
mov edi, dword [eax + 0xc]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov ecx, eax
lea edx, [ebp + 0x48]
mov edi, dword [ecx]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
lea edx, [ebp + 0x6c]
mov edi, dword [ecx]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov ecx, eax
lea edx, [ebp + 0x60]
mov edi, dword [ecx]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
mov dword [ebp + 0x7c], ebx
mov dword [edx + 8], ecx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov ecx, dword [eax + 0xc]
lea edx, [esi + 0x5c]
mov dword [esi + 0x5c], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 8], ecx
mov ecx, dword [eax]
lea edx, [esi + 0x50]
mov dword [esi + 0x50], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [esi + 0x24], ebx
mov dword [edx + 8], eax
lea eax, [esi + 0x2c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [eax], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x38], eax
mov dword [eax], eax
lea eax, [esi + 0x3c]
mov dword [eax], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x68], 0x4a7a40
mov dword [esi + 0x6c], ebx
mov eax, dword [0x84a7c8]
mov ecx, dword [0x845b88]
mov edi, dword [0x8107a4]
push 0x40507
mov edx, dword [ecx + eax]
push edx
call dword [eax + 0x118]
add esp, 8
cmp eax, ebx
je 0x4a834b
mov dword [eax], esi
mov dword [eax + 4], edi
mov edx, dword [0x845b88]
mov edi, dword [0x84a7c8]
lea ecx, [eax + 8]
mov edx, dword [edx + edi + 4]
mov dword [ecx], edx
mov edx, dword [0x84a7c8]
mov edi, dword [0x845b88]
lea edx, [edi + edx + 4]
mov dword [eax + 0xc], edx
mov eax, dword [0x845b88]
mov edx, dword [0x84a7c8]
mov eax, dword [eax + edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [0x84a7c8]
mov eax, dword [0x845b88]
mov dword [eax + edx + 4], ecx
push esi
push 0x8107a4
call fcn.004de800
push ebp
push 0x810804
call fcn.004de800
push esi
call fcn.004a7bb0
add esp, 0x14
test eax, eax
jne 0x4a847e
mov ecx, dword [0x84a7c8]
mov edx, dword [0x845b88]
mov eax, dword [edx + ecx + 4]
lea edx, [edx + ecx + 4]
cmp eax, edx
je 0x4a83c6
mov edi, dword [eax - 8]
lea ecx, [eax - 8]
cmp edi, esi
je 0x4a839c
mov eax, dword [eax]
cmp eax, edx
jne 0x4a838a
jmp 0x4a83c6
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
push ecx
mov dword [eax], edx
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 4], edx
mov eax, dword [0x84a7c8]
mov ecx, dword [0x845b88]
mov edx, dword [ecx + eax]
push edx
call dword [eax + 0x11c]
add esp, 8
mov edi, dword [esi + 0x1c]
xor ebp, ebp
cmp edi, ebx
je 0x4a83fe
cmp dword [edi], ebx
jge 0x4a83ed
mov eax, dword [edi + 0x78]
cmp eax, ebx
je 0x4a83e6
push eax
call fcn.004aa060
add esp, 4
mov dword [edi + 0x78], ebx
mov edi, dword [esp + ebp*4 + 0x18]
dec ebp
jmp 0x4a83fa
mov eax, edi
mov edi, dword [edi + 8]
inc ebp
mov eax, dword [eax + 0xc]
mov dword [esp + ebp*4 + 0x18], eax
cmp ebp, ebx
jge 0x4a83cf
lea eax, [esi + 0x10]
push eax
call fcn.004a98d0
mov al, byte [esi + 3]
add esp, 4
test al, 1
mov eax, dword [esi + 0x1c]
je 0x4a8449
cmp eax, ebx
je 0x4a8421
push eax
call fcn.004a7820
add esp, 4
push esi
push 0x8107a4
call fcn.004de860
mov ecx, dword [0x84a7c8]
push esi
call dword [ecx + 0x10c]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp eax, ebx
je 0x4a8456
push eax
call fcn.004a78d0
add esp, 4
push esi
push 0x8107a4
call fcn.004de860
mov edx, dword [0x84a7c8]
push esi
call dword [edx + 0x10c]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret