Function at 0x4a04c7
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x2e8, 0
push eax
sub ebp, 0x82
lea edx, [ebp - 0x162]
mov eax, 0x4a017b
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryA]
call fcn.004a0d6f
push eax
call dword [ebx]
lea edx, [ebp - 0x162]
mov esi, eax
mov ebx, eax
mov eax, 0x4a019b
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push esi
call dword [edi]
mov dword [ebp - 0xe], eax
cmp dword [ebp - 0x26a], 0
jne 0x4a0525
push 0
call dword [ebp - 0xe]
mov dword [ebp - 0x26a], eax
lea edx, [ebp - 0x162]
mov eax, 0x4a01ac
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
push 0x104
mov dword [ebp - 0x52], eax
lea eax, [ebp - 0x266]
push eax
push dword [ebp - 0x26a]
call dword [ebp - 0x52]
mov eax, dword [ebp - 0x26a]
mov edi, eax
add edi, dword [eax + 0x3c]
lea eax, [edi + 0x18]
movzx edx, word [edi + 0x14]
add eax, edx
mov dword [ebp + 0x1e], eax
movzx eax, word [edi + 6]
lea edx, [ebp - 0x162]
mov dword [ebp + 0x2a], eax
mov eax, 0x4a0184
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 6], eax
mov eax, 0x4a01bf
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x1e], eax
mov eax, 0x4a01cb
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x1a], eax
mov eax, 0x4a01de
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
mov dword [ebp - 0x26], eax
lea edx, [ebp - 0x162]
mov eax, 0x4a01ec
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x62], eax
mov eax, 0x4a01fc
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp + 0xe], eax
mov eax, 0x4a0208
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp + 0x6e], eax
mov eax, 0x4a0217
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x22], eax
mov eax, 0x4a0229
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp + 6], eax
mov eax, 0x4a0190
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.004a0d6f
push eax
push ebx
call dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp + 0x5a], eax
lea eax, [ebp - 0x266]
push eax
call dword [ebp - 0x1e]
mov dword [ebp + 0x42], eax
cmp eax, 0xffffffff
jne 0x4a06c6
lea eax, [ebp - 0x266]
call fcn.004a0366
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 0x42]
call dword [ebp - 0x1a]
mov dword [ebp + 0xa], eax
test eax, eax
jne 0x4a06e8
lea eax, [ebp - 0x266]
call fcn.004a0366
push 0
push 0
push 0
push 4
push dword [ebp + 0xa]
call dword [ebp - 0x26]
mov dword [ebp + 0x12], eax
test eax, eax
jne 0x4a0708
lea eax, [ebp - 0x266]
call fcn.004a0366
mov esi, dword [ebp + 0x12]
add esi, dword [0x4a00b1]
cmp dword [esi], 0x4181996
je 0x4a0724
lea eax, [ebp - 0x266]
call fcn.004a0351
lea eax, [esi + 0x54]
mov dword [ebp + 0x52], eax
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp + 0x52]
shl eax, 4
push 0x10004
add edx, eax
push 0
mov dword [ebp - 0x4e], edx
call dword [ebp - 6]
mov dword [ebp + 0x6a], eax
test eax, eax
jne 0x4a0754
lea eax, [ebp - 0x266]
call fcn.004a032c
mov edx, dword [ebp - 0x26a]
mov ecx, dword [ebp + 0x6a]
mov eax, dword [edi + 0x28]
mov ebx, dword [esi + 0xc]
add edx, eax
mov eax, dword [ebp - 0x4e]
mov dword [ebp + 0x1a], edx
add edx, dword [esi + 8]
call fcn.004a0e74
mov dword [ebp - 0x4e], eax
test eax, eax
jne 0x4a078a
mov edx, 0xfffffffd
lea eax, [ebp - 0x266]
call fcn.004a04b1
mov edx, dword [ebp + 0x1a]
mov ecx, dword [ebp + 0x6a]
mov eax, dword [ebp - 0x4e]
mov ebx, dword [esi + 0x14]
add edx, dword [esi + 0x10]
call fcn.004a0e74
mov dword [ebp - 0x4e], eax
test eax, eax
jne 0x4a07b5
mov edx, 0xfffffffd
lea eax, [ebp - 0x266]
call fcn.004a04b1
mov eax, dword [edi + 0x38]
dec eax
mov dword [ebp + 0x3a], eax
lea eax, [edi + 0x78]
mov ebx, dword [ebp - 0x26a]
mov dword [ebp + 0x4a], eax
sub ebx, dword [edi + 0x34]
je 0x4a07ef
cmp dword [esi + 0x18], 0
jne 0x4a07de
lea eax, [ebp - 0x266]
call fcn.004a0499
mov ecx, dword [ebp - 0x26a]
mov eax, dword [ebp - 0x4e]
mov edx, dword [esi + 0x18]
call fcn.004a0d10
mov eax, dword [esi + 0x18]
add dword [ebp - 0x4e], eax
call dword [ebp - 0x22]
push 0
push 0
push eax
mov dword [ebp - 0x12], eax
call dword [ebp + 6]
mov eax, dword [ebp - 6]
mov dword [0x4a0324], eax
mov eax, dword [ebp + 0x5a]
mov dword [0x4a0328], eax
mov eax, dword [esi + 0x20]
mov edx, dword [edi + 0x28]
mov dword [ebp - 0x56], eax
mov eax, dword [ebp - 0x26a]
mov ebx, dword [ebp - 0x56]
add eax, edx
sub ebx, edx
inc eax
lea edx, [ebx - 5]
mov dword [eax], edx
mov eax, dword [ebp + 0x52]
mov dword [ebp + 0x7e], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x5e], 0
mov dword [ebp + 0x16], eax
jmp 0x4a0872
mov dword [ebp - 0x46], 2
cmp dword [ebp - 0x46], 4
je 0x4a086b
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax]
cmp eax, dword [esi + 0x3c]
je 0x4a086b
lea eax, [ebp - 0x4a]
push eax
push dword [ebp - 0x46]
push dword [ebp + 0x4e]
push dword [ebp - 0x42]
call dword [ebp + 0x6e]
inc dword [ebp + 0x5e]
add dword [ebp + 0x7e], 0x10
mov eax, dword [ebp + 0x5e]
cmp eax, dword [ebp + 0x16]
jae 0x4a0917
mov eax, dword [ebp + 0x7e]
imul eax, dword [eax], 0x28
mov edx, dword [ebp + 0x1e]
add edx, eax
mov eax, edx
mov dword [ebp + 2], edx
mov edx, dword [ebp - 0x26a]
add edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x7e]
mov dword [ebp - 0x42], edx
mov eax, dword [eax]
cmp eax, dword [esi + 0x3c]
jne 0x4a08aa
mov eax, dword [esi + 0x40]
add dword [ebp - 0x42], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 8]
mov dword [ebp + 0x4e], eax
lea eax, [ebp - 0x46]
push eax
push 4
push dword [ebp + 0x4e]
push dword [ebp - 0x42]
lea ebx, [ebp - 0x42]
call dword [ebp + 0x6e]
push dword [ebp + 0x6a]
mov ecx, dword [ebp + 0x7e]
lea edx, [ebp - 0x4e]
lea eax, [ebp - 0x266]
push dword [ebp + 0x4e]
mov ecx, dword [ecx + 0xc]
call fcn.004a0ca6
mov eax, dword [ebp + 0x7e]
mov edx, dword [ebp + 2]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x24]
and eax, 0x80000000
and edx, 0x80000000
cmp eax, edx
je 0x4a084b
mov eax, dword [ebp + 0x7e]
test byte [eax + 4], 0x20
je 0x4a0844
mov dword [ebp - 0x46], 0x20
jmp 0x4a084b
cmp dword [esi + 0x24], 0
je 0x4a0a4e
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x26a]
mov dword [ebp + 0x2e], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x32], eax
mov eax, dword [ebp + 0x4a]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp + 0x4a]
mov dword [ebp - 2], eax
add eax, dword [edx + 0x64]
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x3e]
push eax
push 4
push dword [ebp + 0x32]
push dword [ebp + 0x2e]
call dword [ebp + 0x6e]
mov eax, dword [ebp - 0x26a]
add eax, dword [esi + 0x24]
mov dword [ebp + 0x76], eax
mov dword [ebp - 0xa], eax
jmp 0x4a0969
add dword [ebp + 0x76], 0x14
mov eax, dword [ebp + 0x76]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4a0a3e
mov edx, dword [ebp + 0x76]
cmp edx, dword [ebp - 0xa]
jbe 0x4a098a
mov ebx, dword [ebp + 0x76]
mov edx, dword [edx + 0x10]
cmp edx, dword [ebx - 4]
je 0x4a0965
mov edx, dword [ebp - 0x26a]
add edx, eax
mov eax, dword [sym.imp.kernel32.dll_LoadLibraryA]
push edx
mov dword [ebp + 0x56], edx
call dword [eax]
mov dword [ebp - 0x5e], eax
test eax, eax
jne 0x4a09b2
mov edx, dword [ebp + 0x56]
lea eax, [ebp - 0x266]
call fcn.004a037b
mov eax, dword [ebp + 0x76]
mov edx, dword [ebp - 0x26a]
add edx, dword [eax + 0x10]
mov dword [ebp + 0x7a], edx
jmp 0x4a09f1
test eax, 0x80000000
jne 0x4a09d5
add eax, dword [ebp - 0x26a]
lea ebx, [eax + 2]
jmp 0x4a0a1a
mov edx, eax
and edx, 0x7fffffff
shr edx, 0x10
and edx, 0xffff
movzx edx, dx
test edx, edx
je 0x4a0a17
add dword [ebp + 0x7a], 4
mov eax, dword [ebp + 0x7a]
mov eax, dword [eax]
test eax, eax
je 0x4a0965
cmp eax, dword [ebp - 2]
jb 0x4a09c3
cmp eax, dword [ebp - 0x16]
jae 0x4a09c3
add eax, dword [ebp - 0x26a]
mov edx, dword [ebp + 0x7a]
mov eax, dword [eax]
mov dword [edx], eax
jmp 0x4a09ed
movzx ebx, ax
push ebx
mov eax, dword [sym.imp.kernel32.dll_GetProcAddress]
push dword [ebp - 0x5e]
call dword [eax]
mov edx, dword [ebp + 0x7a]
mov dword [edx], eax
test eax, eax
jne 0x4a09ed
mov edx, dword [ebp + 0x56]
lea eax, [ebp - 0x266]
call fcn.004a03b7
jmp 0x4a09ed
lea eax, [ebp - 0x3a]
push eax
push dword [ebp - 0x3e]
push dword [ebp + 0x32]
push dword [ebp + 0x2e]
call dword [ebp + 0x6e]
mov eax, dword [ebp - 0x26a]
sub eax, dword [edi + 0x34]
mov dword [ebp + 0x3e], eax
je 0x4a0c2f
cmp dword [esi + 0x30], 0
jne 0x4a0a71
lea eax, [ebp - 0x266]
call fcn.004a0499
mov dword [ebp - 0x36], 4
mov dword [ebp - 0x32], 0
push dword [ebp + 0x6a]
lea ebx, [ebp - 0x32]
lea edx, [ebp - 0x4e]
lea eax, [ebp - 0x266]
push dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
call fcn.004a0ca6
mov ebx, dword [ebp - 0x32]
mov dword [ebp + 0x72], 0
mov eax, ebx
mov dword [ebp + 0x62], 0
add eax, dword [esi + 0x30]
mov edi, dword [ebp - 0x26a]
mov dword [ebp - 0x5a], eax
cmp ebx, dword [ebp - 0x5a]
jb 0x4a0af6
jmp 0x4a0c0f
movzx eax, word [ebx]
add eax, 0x101
inc ebx
inc ebx
add edi, eax
jmp 0x4a0b0f
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 2]
shl edx, 0x10
or eax, edx
add eax, 0x10100
add ebx, 3
jmp 0x4a0acc
add edi, dword [ebx]
add ebx, 4
jmp 0x4a0b0f
mov al, byte [ebx]
inc ebx
cmp al, 1
jb 0x4a0b05
jbe 0x4a0ad0
cmp al, 2
je 0x4a0aef
jmp 0x4a0b09
test al, al
je 0x4a0ac2
movzx eax, al
inc eax
jmp 0x4a0acc
cmp edi, dword [ebp + 0x62]
jb 0x4a0c05
cmp dword [ebp - 0x36], 4
je 0x4a0b32
lea eax, [ebp - 0x4a]
push eax
mov eax, dword [ebp + 0x62]
push dword [ebp - 0x36]
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x6e]
mov eax, edi
sub eax, dword [ebp - 0x26a]
mov dword [ebp + 0x66], 0
mov dword [ebp + 0x36], eax
mov eax, dword [ebp + 0x1e]
jmp 0x4a0b4f
inc dword [ebp + 0x66]
add eax, 0x28
mov edx, dword [ebp + 0x66]
cmp edx, dword [ebp + 0x2a]
jge 0x4a0bf2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
ja 0x4a0b69
mov ecx, dword [eax + 8]
mov dword [ebp + 0x46], ecx
mov ecx, dword [ebp + 0x46]
add ecx, dword [ebp + 0x3a]
mov dword [ebp - 0x2e], ecx
mov ecx, dword [ebp + 0x3a]
mov dword [ebp - 0x2a], ecx
not dword [ebp - 0x2a]
mov ecx, dword [ebp - 0x2e]
and ecx, dword [ebp - 0x2a]
add ecx, edx
mov dword [ebp + 0x22], ecx
cmp edx, dword [ebp + 0x36]
ja 0x4a0b49
mov ecx, dword [ebp + 0x36]
cmp ecx, dword [ebp + 0x22]
jae 0x4a0b49
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x26a]
mov dword [ebp + 0x26], eax
add ecx, edx
mov edx, dword [ebp - 0x26a]
mov eax, dword [ebp + 0x52]
add edx, dword [ebp + 0x22]
mov dword [ebp + 0x72], ecx
mov dword [ebp + 0x62], edx
xor edx, edx
jmp 0x4a0bbe
inc edx
add eax, 0x10
cmp edx, dword [ebp + 0x16]
jae 0x4a0bd0
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x66]
jne 0x4a0bba
mov eax, dword [eax + 4]
mov dword [ebp + 0x26], eax
test byte [ebp + 0x29], 0x80
jne 0x4a0beb
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp + 0x62]
push 4
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x6e]
jmp 0x4a0bf2
mov dword [ebp - 0x36], 4
mov eax, dword [ebp + 0x66]
cmp eax, dword [ebp + 0x2a]
jne 0x4a0c05
lea eax, [ebp - 0x266]
call fcn.004a0351
mov eax, dword [ebp + 0x3e]
add dword [edi], eax
jmp 0x4a0ab8
cmp dword [ebp - 0x36], 4
je 0x4a0c29
lea eax, [ebp - 0x4a]
push eax
mov eax, dword [ebp + 0x62]
push dword [ebp - 0x36]
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x6e]
push dword [ebp - 0x32]
call dword [ebp + 0x5a]
cmp dword [esi + 0x44], 0
je 0x4a0c6e
mov eax, dword [ebp + 0x4a]
mov edx, dword [ebp - 0x26a]
add edx, dword [eax + 0x48]
mov ebx, dword [ebp - 0x26a]
mov edi, dword [edx + 8]
add ebx, dword [esi + 0x44]
mov edi, dword [edi]
mov dword [ebx], edi
mov eax, edx
mov edx, dword [edx + 4]
mov esi, dword [eax]
sub edx, dword [eax]
mov eax, edi
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov ecx, edx
mov edi, eax
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
push dword [ebp + 0x12]
call dword [ebp - 0x62]
push dword [ebp + 0xa]
call dword [ebp + 0xe]
push dword [ebp + 0x42]
call dword [ebp + 0xe]
push 0
push 0
push dword [ebp - 0x12]
call dword [ebp + 6]
push dword [ebp + 0x6a]
call dword [ebp + 0x5a]
mov eax, dword [ebp - 0x26a]
add eax, dword [ebp - 0x56]
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret