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

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0x4cc]
xor ebx, ebx
cmp ebp, ebx
mov dword [esi + 0x4d4], ebp
mov dword [esp + 0x14], ebp
mov dword [esi + 0x4d0], ebx
mov dword [esi + 0x4cc], ebx
je 0x4a7fa7
push edi
jmp 0x4a7a10
mov ebp, dword [esp + 0x18]
jmp 0x4a7a10
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
cmp dword [esp + 0xe0], ebx
mov byte [esp + 0x17], 0
jne 0x4a7efc
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x4a7efc
push str.asfunction:
push eax
call fcn.00434aa0
add esp, 8
cmp eax, ebx
je 0x4a7b76
push eax
mov dword [esp + 0x14], ebx
call fcn.00434dd0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4a7efc
push 0x2c
push eax
call fcn.00434e90
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4a7ac1
mov byte [edi], 0
mov eax, dword [esi + 0x3f8]
cmp eax, ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], 2
je 0x4a7a9d
mov al, byte [eax + 0x39]
test al, al
jbe 0x4a7a9d
movzx eax, al
jmp 0x4a7aa8
mov ecx, dword [esi + 0x41c]
call fcn.00484e10
push eax
inc edi
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00461f30
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00411a50
mov ecx, dword [ebp + 0x38]
xor edi, edi
test ecx, ecx
je 0x4a7adf
push edi
call fcn.00485630
mov edi, eax
test edi, edi
je 0x4a7adf
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov ebx, eax
push edi
push esi
lea ecx, [esp + 0x94]
call fcn.00470980
mov ecx, dword [esi + 0x98c]
call fcn.00484e10
mov edi, dword [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0049c280
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
push 0
mov ecx, esi
call fcn.004a2140
test eax, eax
je 0x4a7b33
push 1
mov ecx, esi
call fcn.0046bc80
mov eax, dword [esi + 0x4f0]
test eax, eax
jbe 0x4a7b51
mov ecx, dword [esi + 0x4f8]
dec eax
mov dword [esi + 0x4f0], eax
mov dword [ecx + eax*4], 2
push edi
call fcn.00527b30
add esp, 4
lea ecx, [esp + 0x8c]
call fcn.0046fb30
mov edx, dword [ebp]
push 1
mov ecx, ebp
xor ebx, ebx
call dword [edx]
jmp 0x4a7f90
mov edx, dword [ebp + 0x20]
cmp edx, ebx
jne 0x4a7b86
cmp dword [ebp + 0x34], ebx
je 0x4a7efc
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
and eax, 0x80
cmp ecx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
jne 0x4a7c75
push edx
lea ecx, [esp + 0x78]
call fcn.004350d0
lea edx, [esp + 0x74]
push edx
push ebx
mov ecx, esi
call fcn.0049f210
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x4a7c5a
mov edi, dword [eax + 0x98]
mov eax, dword [esi + 0x620]
cmp eax, ebx
je 0x4a7beb
cmp edi, ebx
je 0x4a7beb
mov ecx, dword [edi + 0x2c]
cmp eax, ecx
je 0x4a7c5a
cmp ecx, ebx
je 0x4a7beb
mov eax, dword [eax + 0x50]
cmp eax, dword [ecx + 0x50]
je 0x4a7c5a
mov eax, dword [esi + 0x3f8]
cmp eax, ebx
mov dword [esp + 0x1c], 1
je 0x4a7c1f
cmp byte [eax + 0x39], 6
jae 0x4a7c1f
cmp edi, ebx
je 0x4a7c50
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
cmp eax, ebx
je 0x4a7c1f
mov ecx, dword [eax + 0x2c]
call fcn.00484e10
cmp eax, 5
jle 0x4a7c5a
cmp edi, ebx
je 0x4a7c50
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
cmp eax, ebx
je 0x4a7c33
cmp eax, dword [eax + 0x2c]
je 0x4a7c5a
mov ecx, dword [esi + 0x620]
cmp ecx, ebx
je 0x4a7c50
mov edi, dword [edi + 0x2c]
push 1
push edi
call fcn.004709d0
test eax, eax
jne 0x4a7c50
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], ebx
jne 0x4a7c5a
xor edi, edi
jmp 0x4a7c5e
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00527b30
add esp, 4
cmp edi, ebx
je 0x4a7c7e
mov ecx, dword [edi + 0x98]
call fcn.004857c0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
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
call fcn.004b2150
mov eax, dword [esi + 0x3f8]
cmp eax, ebx
je 0x4a7ccd
mov al, byte [eax + 0x39]
test al, al
jbe 0x4a7ccd
movzx eax, al
jmp 0x4a7cd8
mov ecx, dword [esi + 0x41c]
call fcn.00484e10
cmp eax, 5
jle 0x4a7d48
cmp dword [esi + 0x93c], ebx
je 0x4a7d48
mov eax, dword [ebp + 0x1c]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
call dword [edx + 0xa0]
lea edx, [esp + 0x38]
cmp edx, eax
je 0x4a7d0b
push eax
mov ecx, edx
call fcn.004b21c0
mov eax, dword [esp + 0xc4]
push eax
call fcn.00527b30
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00527b30
mov edx, dword [esp + 0xb4]
push edx
call fcn.00527b30
mov eax, dword [esp + 0xac]
push eax
call fcn.00527b30
mov ebx, dword [esp + 0x48]
add esp, 0x10
jmp 0x4a7d59
mov ebx, dword [ebp + 0x1c]
push 0
push 0
push ebx
lea ecx, [esp + 0x44]
call fcn.004b31a0
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4a7e5f
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + 0xc]
push ebp
push esi
push eax
push ebx
call fcn.004955b0
test al, al
jne 0x4a7e5f
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4a7dcf
mov al, byte [eax + 0x25]
cmp al, 0xa
je 0x4a7d8d
cmp al, 0x19
jne 0x4a7dcf
mov eax, 2
push eax
mov ecx, esi
call fcn.00411a50
mov eax, dword [ebp + 0x34]
push 0
push 0
push 0
push 0
push 1
push 0x53e4a8
push 0
push eax
mov ecx, esi
call fcn.004a2e20
test eax, eax
je 0x4a7dc3
push 1
mov ecx, esi
call fcn.0046bc80
mov ecx, esi
call fcn.0040d730
jmp 0x4a7ec3
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4a7ec3
push 0x447cf0
push 2
push 4
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401000
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [esp + 0x84]
call fcn.004350d0
mov eax, dword [esi + 0x41c]
mov eax, dword [eax + 0x54]
lea ecx, [esp + 0x80]
push ecx
push eax
mov ecx, esi
call fcn.0049f210
push eax
lea ecx, [esp + 0x34]
call fcn.00461f70
push 7
push str.IllegalRequest
push esi
lea ecx, [esp + 0x40]
call fcn.00461f30
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax + 0x28]
push 0
push 2
lea edx, [esp + 0x38]
push edx
push str.onLoadError
push ecx
mov ecx, esi
call fcn.004a50c0
mov edx, dword [esp + 0x80]
push edx
call fcn.00527b30
add esp, 4
jmp 0x4a7ec3
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4a7e7e
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a7f0a
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4a7ec3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a7eae
mov eax, dword [ebp + 0x40]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4a7eae
push eax
push eax
mov eax, dword [esi + 0x41c]
add eax, 0xb8
push eax
lea ecx, [esi + 0x628]
call fcn.00471070
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
test edi, edi
setne dl
push ecx
push edx
push ebp
push esi
call fcn.004a77c0
add esp, 0x10
mov eax, dword [esp + 0x5c]
push eax
call fcn.00527b30
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00527b30
mov edx, dword [esp + 0x4c]
push edx
call fcn.00527b30
mov eax, dword [esp + 0x44]
push eax
call fcn.00527b30
mov al, byte [esp + 0x27]
add esp, 0x10
test al, al
jne 0x4a7f8e
xor ebx, ebx
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
jmp 0x4a7f90
call fcn.0046f810
mov ecx, dword [0x623d50]
neg al
push 0x78
sbb eax, eax
add eax, 2
mov dword [esp + 0x24], eax
call fcn.00524fa0
mov edi, eax
lea ebp, [edi + 0x20]
mov ecx, ebp
call fcn.0040c1b0
push 0x78
mov ecx, edi
call fcn.0040d2f0
push 0
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test edi, edi
je 0x4a7f6b
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
push edx
push ebx
push eax
push ebx
push eax
push 0x4a7880
push ecx
push esi
mov ecx, edi
call fcn.0046f0e0
jmp 0x4a7f6d
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.0049cb60
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x17], 1
jmp 0x4a7ec3
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esi + 0x4d4], eax
mov dword [esp + 0x18], eax
jne 0x4a7a04
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 4