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

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x324, 0
push eax
sub ebp, 0x82
lea edx, [ebp - 0x19e]
mov eax, 0x4f7787
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
call fcn.004f85eb
push eax
call dword [ebx]
lea edx, [ebp - 0x19e]
mov edi, eax
mov ebx, eax
mov eax, 0x4f77a7
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push edi
call dword [esi]
mov dword [ebp - 0x12], eax
cmp dword [ebp - 0x2a6], 0
jne 0x4f7cad
push 0
call dword [ebp - 0x12]
mov dword [ebp - 0x2a6], eax
lea edx, [ebp - 0x19e]
mov eax, 0x4f77b8
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
push 0x104
mov dword [ebp - 0x62], eax
lea eax, [ebp - 0x2a2]
push eax
push dword [ebp - 0x2a6]
call dword [ebp - 0x62]
mov eax, dword [ebp - 0x2a6]
mov edx, eax
add edx, dword [eax + 0x3c]
mov dword [ebp + 0x7e], edx
movzx eax, word [edx + 0x14]
add edx, 0x18
add edx, eax
mov eax, dword [ebp + 0x7e]
mov dword [ebp + 0x16], edx
movzx eax, word [eax + 6]
lea edx, [ebp - 0x19e]
mov dword [ebp + 0x3a], eax
mov eax, 0x4f7790
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp + 0x1e], eax
mov eax, 0x4f77cb
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp - 0x32], eax
mov eax, 0x4f77d7
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp - 0x2a], eax
mov eax, 0x4f77ea
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
mov dword [ebp - 0x1a], eax
lea edx, [ebp - 0x19e]
mov eax, 0x4f77f8
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp - 0x22], eax
mov eax, 0x4f7808
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp + 6], eax
mov eax, 0x4f7814
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp + 0x76], eax
mov eax, 0x4f7823
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp - 0x1e], eax
mov eax, 0x4f7835
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x19e]
mov dword [ebp + 0xa], eax
mov eax, 0x4f779c
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ebx
call dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp + 0x4e], eax
lea eax, [ebp - 0x2a2]
push eax
call dword [ebp - 0x32]
mov dword [ebp + 0x26], eax
cmp eax, 0xffffffff
jne 0x4f7e54
lea eax, [ebp - 0x2a2]
call fcn.004f7aee
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 0x26]
call dword [ebp - 0x2a]
mov dword [ebp + 2], eax
test eax, eax
jne 0x4f7e76
lea eax, [ebp - 0x2a2]
call fcn.004f7aee
push 0
push 0
push 0
push 4
push dword [ebp + 2]
call dword [ebp - 0x1a]
mov dword [ebp + 0x2a], eax
test eax, eax
jne 0x4f7e96
lea eax, [ebp - 0x2a2]
call fcn.004f7aee
mov esi, dword [ebp + 0x2a]
add esi, dword [0x4f76bd]
cmp dword [esi], 0x4181996
je 0x4f7eb2
lea eax, [ebp - 0x2a2]
call fcn.004f7ad9
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 - 0x5e], edx
call dword [ebp + 0x1e]
mov dword [ebp + 0x6e], eax
test eax, eax
jne 0x4f7ee2
lea eax, [ebp - 0x2a2]
call fcn.004f7ab4
mov edi, dword [ebp + 0x7e]
mov ecx, dword [ebp + 0x6e]
mov eax, dword [ebp - 0x5e]
mov edi, dword [edi + 0x28]
mov edx, dword [esi + 8]
add edi, dword [ebp - 0x2a6]
mov ebx, dword [esi + 0xc]
add edx, edi
call fcn.004f86f0
mov dword [ebp - 0x5e], eax
test eax, eax
jne 0x4f7f18
mov edx, 0xfffffffd
lea eax, [ebp - 0x2a2]
call fcn.004f7c39
mov ecx, dword [ebp + 0x6e]
mov eax, dword [ebp - 0x5e]
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
add edx, edi
call fcn.004f86f0
mov dword [ebp - 0x5e], eax
test eax, eax
jne 0x4f7f42
mov edx, 0xfffffffd
lea eax, [ebp - 0x2a2]
call fcn.004f7c39
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x38]
dec eax
mov dword [ebp - 6], eax
mov eax, dword [ebp + 0x7e]
add eax, 0x78
mov ebx, dword [ebp + 0x7e]
mov dword [ebp + 0x5a], eax
mov eax, dword [ebp - 0x2a6]
sub eax, dword [ebx + 0x34]
mov ebx, eax
je 0x4f7f87
cmp dword [esi + 0x18], 0
jne 0x4f7f76
lea eax, [ebp - 0x2a2]
call fcn.004f7c21
mov ecx, dword [ebp - 0x2a6]
mov eax, dword [ebp - 0x5e]
mov edx, dword [esi + 0x18]
call fcn.004f858c
mov eax, dword [esi + 0x18]
add dword [ebp - 0x5e], eax
call dword [ebp - 0x1e]
push 0
push 0
push eax
mov dword [ebp - 0x26], eax
call dword [ebp + 0xa]
mov eax, dword [ebp + 0x1e]
mov dword [0x4f7aa9], eax
mov eax, dword [ebp + 0x4e]
mov dword [0x4f7aad], eax
cmp dword [0x4f76b9], 0
jne 0x4f80b1
lea edx, [ebp - 0x19e]
mov eax, 0x4f7857
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
call fcn.004f85eb
push eax
call dword [ebx]
lea edx, [ebp - 0x19e]
mov ecx, eax
mov eax, 0x4f785e
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call fcn.004f85eb
push eax
push ecx
call dword [ebx]
push 0x2134
mov dword [ebp + 0x1a], eax
lea eax, [ebp - 0x2a2]
push eax
lea edx, [ebp - 0x19e]
mov eax, 0x4f792c
call fcn.004f85eb
jmp 0x4f80b1
mov eax, dword [esi + 0x20]
mov edx, dword [ebp + 0x7e]
mov dword [ebp + 0x22], eax
mov edx, dword [edx + 0x28]
mov eax, dword [ebp - 0x2a6]
mov ebx, dword [ebp + 0x22]
add eax, edx
sub ebx, edx
inc eax
lea edx, [ebx - 5]
mov dword [eax], edx
mov edi, dword [ebp + 0x52]
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x62], 0
mov dword [ebp + 0x12], eax
jmp 0x4f810c
mov dword [ebp - 0x56], 2
cmp dword [ebp - 0x56], 4
je 0x4f8106
mov eax, dword [edi]
cmp eax, dword [esi + 0x3c]
je 0x4f8106
lea eax, [ebp - 0x5a]
push eax
push dword [ebp - 0x56]
push dword [ebp + 0x5e]
push dword [ebp - 0x52]
call dword [ebp + 0x76]
inc dword [ebp + 0x62]
add edi, 0x10
mov eax, dword [ebp + 0x62]
cmp eax, dword [ebp + 0x12]
jae 0x4f819f
imul eax, dword [edi], 0x28
mov edx, dword [ebp + 0x16]
add edx, eax
mov eax, edx
mov dword [ebp + 0x32], edx
mov edx, dword [ebp - 0x2a6]
add edx, dword [eax + 0xc]
mov dword [ebp - 0x52], edx
mov eax, dword [edi]
cmp eax, dword [esi + 0x3c]
jne 0x4f813e
mov eax, dword [esi + 0x40]
add dword [ebp - 0x52], eax
mov eax, dword [edi + 8]
mov dword [ebp + 0x5e], eax
lea eax, [ebp - 0x56]
push eax
push 4
push dword [ebp + 0x5e]
push dword [ebp - 0x52]
lea ebx, [ebp - 0x52]
call dword [ebp + 0x76]
push dword [ebp + 0x6e]
lea edx, [ebp - 0x5e]
lea eax, [ebp - 0x2a2]
push dword [ebp + 0x5e]
mov ecx, dword [edi + 0xc]
call fcn.004f8522
mov eax, dword [ebp + 0x32]
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x24]
and edx, 0x80000000
and eax, 0x80000000
cmp edx, eax
je 0x4f80e9
test byte [edi + 4], 0x20
je 0x4f80e2
mov dword [ebp - 0x56], 0x20
jmp 0x4f80e9
cmp dword [esi + 0x24], 0
je 0x4f82c9
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x2a6]
mov dword [ebp + 0x36], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x2e], eax
mov eax, dword [ebp + 0x5a]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp + 0x5a]
mov dword [ebp - 2], eax
add eax, dword [edx + 0x64]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0x4e]
push eax
push 4
push dword [ebp + 0x2e]
push dword [ebp + 0x36]
call dword [ebp + 0x76]
mov eax, dword [ebp - 0x2a6]
add eax, dword [esi + 0x24]
mov dword [ebp + 0x7a], eax
mov dword [ebp - 0x16], eax
jmp 0x4f81f1
add dword [ebp + 0x7a], 0x14
mov eax, dword [ebp + 0x7a]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f82b9
mov edx, dword [ebp + 0x7a]
cmp edx, dword [ebp - 0x16]
jbe 0x4f8212
mov ebx, dword [ebp + 0x7a]
mov edx, dword [edx + 0x10]
cmp edx, dword [ebx - 4]
je 0x4f81ed
mov edx, dword [ebp - 0x2a6]
add edx, eax
mov eax, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push edx
mov dword [ebp + 0x56], edx
call dword [eax]
mov dword [ebp - 0xe], eax
test eax, eax
jne 0x4f823a
mov edx, dword [ebp + 0x56]
lea eax, [ebp - 0x2a2]
call fcn.004f7b03
mov eax, dword [ebp + 0x7a]
mov edi, dword [ebp - 0x2a6]
add edi, dword [eax + 0x10]
jmp 0x4f8275
test eax, 0x80000000
jne 0x4f825a
add eax, dword [ebp - 0x2a6]
lea ebx, [eax + 2]
jmp 0x4f8298
mov edx, eax
and edx, 0x7fffffff
shr edx, 0x10
and edx, 0xffff
movzx edx, dx
test edx, edx
je 0x4f8295
add edi, 4
mov eax, dword [edi]
test eax, eax
je 0x4f81ed
cmp eax, dword [ebp - 2]
jb 0x4f8248
cmp eax, dword [ebp - 0xa]
jae 0x4f8248
add eax, dword [ebp - 0x2a6]
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x4f8272
movzx ebx, ax
push ebx
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push dword [ebp - 0xe]
call dword [eax]
mov dword [edi], eax
test eax, eax
jne 0x4f8272
mov edx, dword [ebp + 0x56]
lea eax, [ebp - 0x2a2]
call fcn.004f7b3f
jmp 0x4f8272
lea eax, [ebp - 0x4a]
push eax
push dword [ebp - 0x4e]
push dword [ebp + 0x2e]
push dword [ebp + 0x36]
call dword [ebp + 0x76]
mov eax, dword [ebp + 0x7e]
mov edx, dword [ebp - 0x2a6]
sub edx, dword [eax + 0x34]
mov dword [ebp + 0xe], edx
je 0x4f84ad
cmp dword [esi + 0x30], 0
jne 0x4f82ef
lea eax, [ebp - 0x2a2]
call fcn.004f7c21
mov dword [ebp - 0x46], 4
mov dword [ebp - 0x42], 0
push dword [ebp + 0x6e]
lea ebx, [ebp - 0x42]
lea edx, [ebp - 0x5e]
lea eax, [ebp - 0x2a2]
push dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
call fcn.004f8522
mov ebx, dword [ebp - 0x42]
mov dword [ebp + 0x72], 0
mov eax, ebx
mov dword [ebp + 0x6a], 0
add eax, dword [esi + 0x30]
mov edi, dword [ebp - 0x2a6]
mov dword [ebp - 0x2e], eax
cmp ebx, dword [ebp - 0x2e]
jb 0x4f8374
jmp 0x4f848d
movzx eax, word [ebx]
add eax, 0x101
inc ebx
inc ebx
add edi, eax
jmp 0x4f838d
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or eax, edx
add eax, 0x10100
add ebx, 3
jmp 0x4f834a
add edi, dword [ebx]
add ebx, 4
jmp 0x4f838d
mov al, byte [ebx]
inc ebx
cmp al, 1
jb 0x4f8383
jbe 0x4f834e
cmp al, 2
je 0x4f836d
jmp 0x4f8387
test al, al
je 0x4f8340
movzx eax, al
inc eax
jmp 0x4f834a
cmp edi, dword [ebp + 0x6a]
jb 0x4f8483
cmp dword [ebp - 0x46], 4
je 0x4f83b0
lea eax, [ebp - 0x5a]
push eax
mov eax, dword [ebp + 0x6a]
push dword [ebp - 0x46]
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x76]
mov eax, edi
sub eax, dword [ebp - 0x2a6]
mov dword [ebp + 0x66], 0
mov dword [ebp + 0x3e], eax
mov eax, dword [ebp + 0x16]
jmp 0x4f83cd
inc dword [ebp + 0x66]
add eax, 0x28
mov edx, dword [ebp + 0x66]
cmp edx, dword [ebp + 0x3a]
jge 0x4f8470
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
ja 0x4f83e7
mov ecx, dword [eax + 8]
mov dword [ebp + 0x4a], ecx
mov ecx, dword [ebp + 0x4a]
add ecx, dword [ebp - 6]
mov dword [ebp - 0x3e], ecx
mov ecx, dword [ebp - 6]
mov dword [ebp - 0x3a], ecx
not dword [ebp - 0x3a]
mov ecx, dword [ebp - 0x3e]
and ecx, dword [ebp - 0x3a]
add ecx, edx
mov dword [ebp + 0x42], ecx
cmp edx, dword [ebp + 0x3e]
ja 0x4f83c7
mov ecx, dword [ebp + 0x3e]
cmp ecx, dword [ebp + 0x42]
jae 0x4f83c7
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x2a6]
mov dword [ebp + 0x46], eax
add ecx, edx
mov edx, dword [ebp - 0x2a6]
mov eax, dword [ebp + 0x52]
add edx, dword [ebp + 0x42]
mov dword [ebp + 0x72], ecx
mov dword [ebp + 0x6a], edx
xor edx, edx
jmp 0x4f843c
inc edx
add eax, 0x10
cmp edx, dword [ebp + 0x12]
jae 0x4f844e
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x66]
jne 0x4f8438
mov eax, dword [eax + 4]
mov dword [ebp + 0x46], eax
test byte [ebp + 0x49], 0x80
jne 0x4f8469
lea eax, [ebp - 0x46]
push eax
mov eax, dword [ebp + 0x6a]
push 4
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x76]
jmp 0x4f8470
mov dword [ebp - 0x46], 4
mov eax, dword [ebp + 0x66]
cmp eax, dword [ebp + 0x3a]
jne 0x4f8483
lea eax, [ebp - 0x2a2]
call fcn.004f7ad9
mov eax, dword [ebp + 0xe]
add dword [edi], eax
jmp 0x4f8336
cmp dword [ebp - 0x46], 4
je 0x4f84a7
lea eax, [ebp - 0x5a]
push eax
mov eax, dword [ebp + 0x6a]
push dword [ebp - 0x46]
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x76]
push dword [ebp - 0x42]
call dword [ebp + 0x4e]
cmp dword [esi + 0x44], 0
je 0x4f84ea
mov eax, dword [ebp + 0x5a]
mov edx, dword [ebp - 0x2a6]
add edx, dword [eax + 0x48]
mov ebx, dword [ebp - 0x2a6]
mov eax, edx
mov edx, dword [edx + 8]
add ebx, dword [esi + 0x44]
mov edx, dword [edx]
mov dword [ebx], edx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, dword [eax]
mov eax, edx
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov edi, eax
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
push dword [ebp + 0x2a]
call dword [ebp - 0x22]
push dword [ebp + 2]
call dword [ebp + 6]
push dword [ebp + 0x26]
call dword [ebp + 6]
push 0
push 0
push dword [ebp - 0x26]
call dword [ebp + 0xa]
push dword [ebp + 0x6e]
call dword [ebp + 0x4e]
mov eax, dword [ebp - 0x2a6]
add eax, dword [ebp + 0x22]
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret