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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], edi
cmp dword [esp + 0xd4], 0
jne 0x4a0e15
mov dword [esp + 0xe8], 0
jmp 0x4a12f0
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xd0], eax
cmp dword [esp + 0xe4], 0
je 0x4a0e44
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x48], eax
jmp 0x4a0e59
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
add eax, dword [ecx + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [0x6e5094]
mov edx, dword [0x6e5090]
mov esi, ecx
sub esi, 1
imul ecx, esi
and ecx, 1
cmp ecx, 0
sete bl
cmp edx, 0xa
setl bh
or bl, bh
test bl, 1
mov dword [esp + 0x44], eax
jne 0x4a0ea0
jmp 0x4a12ff
mov eax, dword [esp + 0x44]
mov dword [esp + 0xcc], eax
mov ecx, dword [esp + 0xcc]
cmp dword [ecx + 0x7c], 0
setne dl
mov ecx, dword [0x6e5094]
call fcn.004a1310
mov edi, ecx
sub edi, 1
imul ecx, edi
and ecx, 1
cmp ecx, 0
sete dh
cmp esi, 0xa
setl bl
or dh, bl
test dh, 1
mov byte [esp + 0x43], dl
jne 0x4a0efe
jmp 0x4a12ff
mov al, byte [esp + 0x43]
test al, 1
jne 0x4a0f1f
jmp 0x4a0f0f
mov dword [esp + 0xe8], 0
jmp 0x4a12f0
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xcc]
add eax, dword [ecx + 0x78]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc8]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc8]
add eax, dword [ecx + 0x24]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc8]
add eax, dword [ecx + 0x20]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
movzx eax, byte [eax]
cmp eax, 0xff
je 0x4a0fdc
mov eax, dword [esp + 0xd8]
mov ecx, esp
mov dword [ecx], eax
call fcn.00448ee0
mov ecx, dword [esp + 0xd8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ac790
mov dword [esp + 0xb8], eax
jmp 0x4a0ff4
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 1]
xor eax, dword [esp + 0xe0]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb0], 0
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xc8]
cmp eax, dword [ecx + 0x18]
jae 0x4a12e5
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xac], eax
cmp dword [esp + 0xac], 0
jne 0x4a1044
jmp 0x4a12cd
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xac]
add ecx, eax
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xac]
mov edx, esi
mov edx, esp
call fcn.004a1320
mov dword [esp + 0x3c], eax
call fcn.00448ee0
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ac790
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
je 0x4a109f
jmp 0x4a12cd
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xc0]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0xc4]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xcc]
cmp eax, dword [ecx + 0x78]
jb 0x4a12b3
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xcc]
call fcn.004a1330
mov edx, dword [esp + 0xcc]
add ecx, dword [edx + 0x7c]
cmp eax, ecx
jae 0x4a12b3
mov eax, dword [esp + 0xd4]
add eax, dword [esp + 0xa8]
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0x90]
call fcn.005366c0
sub esp, 4
mov ecx, ebx
mov ecx, esp
call fcn.004a1340
mov dword [ecx], 0x2e
lea ecx, [esp + 0x90]
mov dword [esp + 0x38], eax
call fcn.004a3190
sub esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x8c], eax
cmp dword [esp + 0x8c], 0xffffffff
je 0x4a1283
mov eax, dword [esp + 0x8c]
mov ecx, esp
mov dword [ecx + 8], eax
lea eax, [esp + 0x68]
mov dword [ecx], eax
mov dword [ecx + 4], 0
lea ecx, [esp + 0x90]
call fcn.00410c90
sub esp, 0xc
lea ecx, [esp + 0x68]
call fcn.0052df00
mov ecx, 0x447b40
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x68]
mov dword [esp + 0x2c], eax
call fcn.00506f10
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], eax
cmp dword [esp + 0x80], 0
je 0x4a127e
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0x8c]
add edx, 1
mov esi, esp
mov dword [esi + 4], edx
lea edx, [esp + 0x50]
mov dword [esi], edx
mov dword [esi + 8], 0xffffffff
lea edx, [esp + 0x90]
mov dword [esp + 0x28], ecx
mov ecx, edx
mov dword [esp + 0x24], eax
call fcn.00410c90
sub esp, 0xc
lea ecx, [esp + 0x50]
call fcn.0052df00
mov ecx, 0
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ecx
call fcn.004a0db0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xe8], eax
lea ecx, [esp + 0x50]
call fcn.00506f10
mov dword [esp + 0x4c], 1
jmp 0x4a128b
jmp 0x4a1283
mov dword [esp + 0x4c], 2
lea ecx, [esp + 0x90]
call fcn.00506f10
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
cmp eax, 2
jl 0x4a12f0
jmp 0x4a12e5
mov eax, dword [esp + 0xd4]
add eax, dword [esp + 0xa8]
mov dword [esp + 0xe8], eax
jmp 0x4a12f0
mov eax, dword [esp + 0xb0]
add eax, 1
mov dword [esp + 0xb0], eax
jmp 0x4a0fff
mov dword [esp + 0xe8], 0
mov eax, dword [esp + 0xe8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x44]
mov dword [esp + 0xcc], eax
jmp 0x4a0ea0