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

Disassembly:
mov ax, word [esp + 0xc]
sub esp, 0xe8
push ebx
push ebp
xor ebp, ebp
push esi
cmp ax, bp
push edi
mov ebx, ecx
je 0x4aa114
mov ecx, dword [esp + 0xfc]
push 6
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x48]
mov word [esp + 0x3c], ax
call fcn.0047dbb0
push 6
lea ecx, [esp + 0x54]
call fcn.0047dbb0
mov esi, dword [esp + 0x2c]
jmp 0x4aa145
mov eax, dword [esp + 0x108]
mov ecx, dword [ebx + 0x3e4]
and eax, 0xffff
lea edi, [esp + 0x34]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea esi, [ecx + eax*4]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x50]
call fcn.0047de80
mov esi, eax
mov edi, dword [esp + 0x100]
mov ecx, ebx
push edi
call fcn.00485020
push edi
mov ecx, ebx
mov dword [esp + 0x14], eax
mov word [esp + 0x7c], 0x7fe0
call fcn.00484750
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x78]
xor edi, edi
push edx
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x20], ebp
call fcn.00453820
add esp, 8
test eax, eax
je 0x4aa461
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x7a]
cmp eax, ecx
jne 0x4aa461
push 0xffffffffffffffff
call fcn.004ceb90
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xbc]
push edx
push eax
mov word [esp + 0xc4], 0x7fee
call fcn.00453820
add esp, 0xc
test eax, eax
je 0x4aa1e1
mov ecx, dword [esp + 0xba]
mov dword [esp + 0x30], ecx
jmp 0x4aa1e9
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xb8]
push edx
push eax
call fcn.00453b70
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00490a60
mov eax, dword [esp + 0x92]
mov ecx, dword [esp + 0x3c]
add esp, 0x14
cmp ecx, eax
jne 0x4aa25e
cmp word [esp + 0x104], bp
je 0x4aa23f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0048feb0
push eax
push edi
call fcn.00490ac0
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub edx, ecx
push edx
push eax
call fcn.00490ac0
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x4aa43d
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
and ecx, 0xffff
cdq
idiv ecx
test edx, edx
jne 0x4aa2af
mov edx, dword [esp + 0x2c]
push 0x1e
push ebp
push ebp
push ebp
push ebp
push edx
mov ecx, ebx
call fcn.004a1570
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
cmp ecx, ebp
jne 0x4aa299
mov dword [esp + 0x24], eax
push eax
mov ecx, ebx
call fcn.00484790
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0x7f87
cmp word [esp + 0x104], bp
je 0x4aa3cb
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
and eax, 0xffff
add edi, eax
push eax
mov dword [esp + 0x1c], edi
mov edi, 1
push edi
push 2
push 0x32
lea eax, [esp + 0x60]
push ebp
push eax
call fcn.0047f430
add esp, 0x18
mov esi, eax
mov ecx, ebx
push esi
call fcn.00481a50
push 0x10000
push 0x10001
push ebp
mov dword [eax + 0x10], ebp
mov dword [eax + 8], ebp
mov cx, word [ebx + 0x42c]
push 0x32
lea edx, [esp + 0x60]
push esi
push edx
mov word [eax + 0x14], cx
mov word [eax + 0x16], bp
mov word [eax + 0x18], 3
mov word [eax + 0x1c], di
mov word [eax + 0x30], bp
mov word [eax + 0x2e], bp
mov word [eax + 0x2c], bp
mov word [eax + 0x1a], di
mov dword [eax + 0x20], 0xffffffff
mov dword [eax + 0x24], ebp
call fcn.0047f430
add esp, 0x18
mov esi, eax
mov ecx, ebx
push esi
call fcn.00481a50
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], ebp
mov dword [eax + 0x10], ecx
mov dx, word [ebx + 0x42c]
push ebp
push ebp
push 2
mov word [eax + 0x14], dx
mov word [eax + 0x16], bp
mov word [eax + 0x18], 3
mov word [eax + 0x1c], di
mov word [eax + 0x30], bp
mov word [eax + 0x2e], bp
mov word [eax + 0x2c], bp
mov word [eax + 0x1a], di
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], ebp
push ebp
push 8
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.0047f430
add esp, 0x1c
mov edi, eax
lea ecx, [ebx + 0xbc]
push edi
call fcn.00485250
mov word [eax + 6], bp
mov word [eax + 4], bp
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
push edi
call fcn.00490ac0
add esp, 8
jmp 0x4aa402
push esi
mov ecx, ebx
call fcn.00481a50
mov edx, dword [esp + 0x14]
push esi
mov dword [eax + 0x10], edx
call fcn.00481a40
mov esi, eax
push esi
call fcn.004a0780
mov ecx, dword [esp + 0x20]
and eax, 0xffff
add ecx, eax
push esi
mov dword [esp + 0x24], ecx
call fcn.00481a40
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x100]
cmp eax, ecx
je 0x4aa427
push 1
push eax
mov ecx, ebx
call fcn.004898d0
push eax
mov ecx, ebx
call fcn.0048eb00
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
sub ecx, eax
push ecx
push edx
call fcn.00490ac0
mov eax, dword [esp + 0x18]
push eax
call fcn.00481a40
add esp, 0xc
lea ecx, [esp + 0x78]
mov edx, eax
mov dword [esp + 0x10], eax
push ecx
push edx
call fcn.00453820
add esp, 8
test eax, eax
jne 0x4aa197
cmp word [esp + 0x104], bp
je 0x4aa4cb
push ebp
push ebp
push 2
push 0x32
lea eax, [esp + 0x60]
push ebp
push eax
call fcn.0047f430
add esp, 0x18
mov ecx, ebx
push eax
call fcn.00481a50
push ebp
push ebp
push 2
push 1
mov dword [eax + 0x10], ebp
mov word [eax + 0x30], bp
mov word [eax + 0x2e], bp
mov word [eax + 0x2c], bp
mov cx, word [ebx + 0x42c]
push 8
lea edx, [esp + 0x58]
push ebp
push edx
mov word [eax + 0x14], cx
call fcn.0047f430
add esp, 0x1c
lea ecx, [ebx + 0xbc]
push eax
call fcn.00485250
mov word [eax + 6], bp
mov word [eax + 4], bp
mov ecx, ebx
call fcn.00490b00
mov esi, dword [esp + 0x24]
cmp esi, ebp
je 0x4aa523
mov eax, dword [esp + 0x10]
push 1
push eax
call fcn.004952e0
add esp, 4
mov ecx, ebx
push eax
call fcn.004898d0
push eax
mov ecx, ebx
call fcn.0048eb00
mov ecx, dword [esp + 0x14]
push 1
push ecx
push esi
mov ecx, ebx
call fcn.004b21a0
push 1
push esi
call fcn.00485500
add esp, 4
mov ecx, ebx
push eax
call fcn.00487a00
push eax
mov ecx, ebx
call fcn.0048f6d0
cmp edi, ebp
je 0x4aa5e7
mov ecx, ebx
call fcn.00490b00
lea edi, [ebx + 0xbc]
lea esi, [ebx + 0xb0]
mov edx, edi
push 1
mov eax, dword [edx]
mov dword [esp + 0x70], eax
mov eax, esi
mov ecx, dword [edx + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax]
mov edx, dword [edx + 8]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x78], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x48]
mov eax, dword [eax + 8]
mov ecx, edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov eax, esi
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, ebx
call fcn.004822a0
push eax
call fcn.0049eaf0
add esp, 4
mov ecx, ebx
push eax
call fcn.00482290
push eax
mov ecx, ebx
call fcn.004b21a0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [edi], edx
mov edx, dword [esp + 0x60]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, ebx
call fcn.00490b00
cmp word [esp + 0x104], bp
je 0x4aa6d2
mov edx, dword [esp + 0x38]
and edx, 0xffff
shl edx, 2
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp word [esp + 0x38], bp
mov dword [esp + 0x40], eax
jbe 0x4aa654
mov esi, dword [esp + 0x108]
mov edi, dword [esp + 0x10c]
and esi, 0xffff
mov ecx, ebp
and ecx, 0xffff
mov eax, ecx
cdq
idiv esi
inc ebp
mov eax, dword [edi + edx*4]
mov edx, dword [esp + 0x40]
mov dword [edx + ecx*4], eax
cmp bp, word [esp + 0x38]
jb 0x4aa635
mov eax, dword [ebx + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
push 2
mov ax, word [ebx + 0x3de]
inc eax
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [ebx + 0x3e0]
shl edx, 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [ebx + 0x3e0], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
lea esi, [esp + 0x34]
mov cx, word [ebx + 0x3de]
mov dword [ebx + 0x3e4], eax
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
lea edi, [eax + ecx*4]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ax, word [ebx + 0x3de]
pop edi
pop esi
pop ebp
lea edx, [eax + 1]
mov word [ebx + 0x3de], dx
pop ebx
add esp, 0xe8
ret 0x14
mov ax, word [esp + 0x108]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 0x14