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

Disassembly:
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x4d0]
xor ebx, ebx
mov ebp, eax
cmp ebp, ebx
mov dword [esi + 0x4d8], eax
mov dword [esp + 0x14], ebp
mov dword [esi + 0x4d4], ebx
mov dword [esi + 0x4d0], ebx
je 0x4aa63c
push edi
jmp 0x4aa060
xor ebx, ebx
jmp 0x4aa060
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x28], eax
cmp dword [esp + 0xe4], ebx
mov byte [esp + 0x13], 0
jne 0x4aa61c
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x4aa61c
push str.asfunction:
push eax
call fcn.00435350
add esp, 8
cmp eax, ebx
je 0x4aa1d1
push eax
mov dword [esp + 0x18], ebx
call fcn.00435680
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4aa61c
push 0x2c
push eax
call fcn.00435740
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4aa11b
mov byte [edi], 0
mov eax, dword [esi + 0x3fc]
cmp eax, ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 2
je 0x4aa0ed
mov al, byte [eax + 0x39]
test al, al
jbe 0x4aa0ed
movzx eax, al
jmp 0x4aa102
mov ecx, dword [esi + 0x420]
mov eax, dword [ecx + 0x1ac]
cmp eax, ebx
jne 0x4aa102
call fcn.00486cc0
push eax
inc edi
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00462f50
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00411a40
mov ecx, dword [ebp + 0x38]
xor ebx, ebx
xor edi, edi
test ecx, ecx
je 0x4aa13b
push edi
call fcn.00486fb0
mov edi, eax
test edi, edi
je 0x4aa13b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov ebx, eax
push edi
push esi
lea ecx, [esp + 0x98]
call fcn.00471da0
mov ecx, dword [esi + 0x998]
mov eax, dword [ecx + 0x1ac]
test eax, eax
jne 0x4aa15e
call fcn.00486cc0
mov edi, dword [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0049eb30
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
push 0
mov ecx, esi
call fcn.004a45e0
test eax, eax
je 0x4aa199
push 1
mov ecx, esi
call fcn.0046d440
mov eax, dword [esi + 0x4f4]
test eax, eax
jbe 0x4aa1b7
mov ecx, dword [esi + 0x4fc]
dec eax
mov dword [esi + 0x4f4], eax
mov dword [ecx + eax*4], 2
push edi
call fcn.00439d00
add esp, 4
lea ecx, [esp + 0x90]
call fcn.00471350
jmp 0x4aa61c
mov eax, dword [ebp + 0x20]
cmp eax, ebx
jne 0x4aa1e1
cmp dword [ebp + 0x34], ebx
je 0x4aa61c
mov ecx, dword [ebp + 0x30]
and ecx, 0x80
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x34]
cmp ecx, ebx
mov dword [esp + 0x14], ebx
jne 0x4aa2df
push eax
lea ecx, [esp + 0x7c]
call fcn.00435980
lea edx, [esp + 0x78]
push edx
push ebx
mov ecx, esi
call fcn.004a28a0
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4aa2c4
mov edi, dword [eax + 0x98]
mov eax, dword [esi + 0x628]
cmp eax, ebx
je 0x4aa24b
cmp edi, ebx
je 0x4aa24b
mov ecx, dword [edi + 0x2c]
cmp eax, ecx
je 0x4aa2c4
cmp ecx, ebx
je 0x4aa24b
mov edx, dword [eax + 0x50]
cmp edx, dword [ecx + 0x50]
je 0x4aa2c4
mov eax, dword [esi + 0x3fc]
cmp eax, ebx
mov dword [esp + 0x24], 1
je 0x4aa289
cmp byte [eax + 0x39], 6
jae 0x4aa289
cmp edi, ebx
je 0x4aa2ba
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
cmp eax, ebx
je 0x4aa289
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 0x1ac]
cmp eax, ebx
jne 0x4aa284
call fcn.00486cc0
cmp eax, 5
jle 0x4aa2c4
cmp edi, ebx
je 0x4aa2ba
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
cmp eax, ebx
je 0x4aa29d
cmp eax, dword [eax + 0x2c]
je 0x4aa2c4
mov ecx, dword [esi + 0x628]
cmp ecx, ebx
je 0x4aa2ba
mov edi, dword [edi + 0x2c]
push 1
push edi
call fcn.00471dd0
test eax, eax
jne 0x4aa2ba
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x24], ebx
jne 0x4aa2c4
xor edi, edi
jmp 0x4aa2c8
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
push eax
call fcn.00439d00
add esp, 4
cmp edi, ebx
je 0x4aa2e8
mov ecx, dword [edi + 0x98]
call fcn.00487170
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.004b4b10
mov eax, dword [esi + 0x3fc]
cmp eax, ebx
je 0x4aa337
mov al, byte [eax + 0x39]
test al, al
jbe 0x4aa337
movzx eax, al
jmp 0x4aa34c
mov ecx, dword [esi + 0x420]
mov eax, dword [ecx + 0x1ac]
cmp eax, ebx
jne 0x4aa34c
call fcn.00486cc0
cmp eax, 5
jle 0x4aa3bc
cmp dword [esi + 0x94c], ebx
je 0x4aa3bc
mov eax, dword [ebp + 0x1c]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, esi
call dword [edx + 0xa0]
lea edx, [esp + 0x3c]
cmp edx, eax
je 0x4aa37f
push eax
mov ecx, edx
call fcn.004b4b80
mov eax, dword [esp + 0xc8]
push eax
call fcn.00439d00
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.00439d00
mov edx, dword [esp + 0xb8]
push edx
call fcn.00439d00
mov eax, dword [esp + 0xb0]
push eax
call fcn.00439d00
mov ebx, dword [esp + 0x4c]
add esp, 0x10
jmp 0x4aa3cd
mov ebx, dword [ebp + 0x1c]
push 0
push 0
push ebx
lea ecx, [esp + 0x48]
call fcn.004b5c00
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4aa507
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + 0xc]
push ebp
push esi
push eax
push ebx
call fcn.00497470
test al, al
jne 0x4aa507
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4aa443
mov al, byte [eax + 0x25]
cmp al, 0xa
je 0x4aa401
cmp al, 0x19
jne 0x4aa443
mov eax, 2
push eax
mov ecx, esi
call fcn.00411a40
mov eax, dword [ebp + 0x34]
push 0
push 0
push 0
push 0
push 1
push 0x541768
push 0
push eax
mov ecx, esi
call fcn.004a5320
test eax, eax
je 0x4aa437
push 1
mov ecx, esi
call fcn.0046d440
mov ecx, esi
call fcn.0040db40
jmp 0x4aa5e9
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4aa5e9
push 0x405720
push 3
push 4
lea ecx, [esp + 0x38]
push ecx
call fcn.00401000
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [esp + 0x88]
call fcn.00435980
mov eax, dword [esi + 0x420]
mov eax, dword [eax + 0x54]
lea ecx, [esp + 0x84]
push ecx
push eax
mov ecx, esi
call fcn.004a28a0
test eax, eax
je 0x4aa49a
push eax
lea ecx, [esp + 0x30]
call fcn.00462f90
jmp 0x4aa4a2
mov dword [esp + 0x2c], 2
push 7
push str.IllegalRequest
push esi
lea ecx, [esp + 0x3c]
call fcn.00462f50
fld qword [0x53d6d0]
push esi
sub esp, 8
lea ecx, [esp + 0x40]
fstp qword [esp]
call fcn.00462e80
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax + 0x28]
push 0
push 3
lea edx, [esp + 0x34]
push edx
push str.onLoadError
push ecx
mov ecx, esi
call fcn.004a7600
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x4aa4f2
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x84]
push eax
call fcn.00439d00
add esp, 4
jmp 0x4aa5e9
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4aa5b0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4aa52b
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4aa5e9
jmp 0x4aa5b4
mov ecx, dword [esp + 0x14]
call fcn.00471020
mov ecx, dword [0x626db0]
neg al
push 0x78
sbb eax, eax
add eax, 2
mov dword [esp + 0x24], eax
call fcn.005287c0
mov edi, eax
lea ebp, [edi + 0x20]
mov ecx, ebp
call fcn.0040c250
push 0x78
mov ecx, edi
call fcn.0040d7d0
push 0
push ebp
mov edi, eax
call dword [0x53d2b8]
test edi, edi
je 0x4aa590
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
push edx
push ebx
push eax
push ebx
push eax
push 0x4a9ec0
push ecx
push esi
mov ecx, edi
call fcn.004708f0
jmp 0x4aa592
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x68], ecx
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0xc]
push eax
call fcn.0049e3f0
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x13], 1
jmp 0x4aa5e9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4aa5d8
mov eax, dword [ebp + 0x40]
test eax, eax
jne 0x4aa5d8
push eax
push eax
mov eax, dword [esi + 0x420]
add eax, 0xb8
push eax
lea ecx, [esi + 0x630]
call fcn.00472a60
test edi, edi
setne cl
push eax
push ecx
push ebp
push esi
call fcn.004a9e00
add esp, 0x10
mov edx, dword [esp + 0x60]
push edx
call fcn.00439d00
mov eax, dword [esp + 0x58]
push eax
call fcn.00439d00
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00439d00
mov edx, dword [esp + 0x48]
push edx
call fcn.00439d00
mov al, byte [esp + 0x23]
add esp, 0x10
test al, al
jne 0x4aa625
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esi + 0x4d8], ebp
mov dword [esp + 0x18], ebp
jne 0x4aa056
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 4