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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov eax, ecx
mov dword [esp + 0x1c], 0
push esi
mov dword [esp + 0x10], eax
xor ebx, ebx
push edi
mov esi, dword [eax + 8]
mov edi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], esi
mov eax, dword [edi]
movzx ecx, byte [edi + 0x20]
not ecx
and ecx, 1
mov eax, dword [eax]
mov dword [esp + 0x30], eax
add eax, ecx
add eax, dword [ebp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x4e25e0
mov edx, dword [ebp + 0xc]
sub edx, eax
jmp 0x4e25ed
mov eax, dword [ecx + 0x2c]
lea edx, [eax + 1]
add eax, dword [esp + 0x34]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e25fe
inc eax
jmp 0x4e2604
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x38]
dec eax
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
mov dword [edi + 0x18], eax
setne al
lea eax, [eax*4 + 1]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [edi]
call fcn.004b5630
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x4e2695
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
mov eax, dword [edi + 8]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4e2666
push 0
push edx
push eax
mov edx, 0x7d
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
jmp 0x4e2691
mov edi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x7d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp dword [ebp + 0x18], ebx
jne 0x4e2709
cmp dword [ebp + 0x14], ebx
jle 0x4e2709
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0xc]
add edx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x38], eax
cmp dword [ecx + 0x78], eax
jg 0x4e26d6
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
mov edx, 0x4e
call fcn.00495ff0
add esp, 0xc
jmp 0x4e2709
mov edi, dword [ebp + 0xc]
inc eax
mov dword [ecx + 0x74], eax
mov eax, dword [esp + 0x38]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
cmp dword [esp + 0x18], ebx
jle 0x4e2b0d
push dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, edi
push dword [esp + 0x10]
push dword [ebp + 8]
call fcn.004e24f0
mov dword [esp + 0x30], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x2c]
lea ecx, [edx + 1]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 4]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x2c], ecx
mov ecx, edx
sub ecx, dword [edi + 4]
mov eax, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4e279c
add edx, dword [esp + 0xc]
cmp dword [esi + 0x78], ecx
jg 0x4e2787
push 0
push 0
push edx
mov edx, 0x14
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4e27e5
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x14
jmp 0x4e27d1
mov edx, dword [edi + 8]
cmp dword [esi + 0x78], ecx
jg 0x4e27be
push 0
push 0
push edx
mov edx, 0x77
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4e27e5
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x77
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0x10], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [esi + 0x74]
mov eax, dword [edi + 4]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4e280e
push eax
push dword [esp + 0x10]
mov edx, 0x59
mov ecx, esi
push dword [esp + 0x34]
call fcn.00495ff0
add esp, 0xc
jmp 0x4e283d
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [edi + 0x14]
test ecx, ecx
jns 0x4e2848
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], bl
je 0x4e2856
mov ecx, 0x5d1b70
jmp 0x4e285f
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov eax, dword [eax]
cmp byte [eax + 0x57], bl
jne 0x4e2dbc
mov eax, dword [ebp + 0x14]
add eax, dword [esp + 0x20]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x20], ecx
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
call fcn.0054fa10
mov ecx, dword [esi]
add esp, 0xc
cmp byte [ecx + 0x57], bl
je 0x4e28b3
push dword [esp + 0x20]
mov edx, 0xfffffff7
call fcn.00496b00
mov eax, dword [esp + 0x24]
add esp, 4
jmp 0x4e28e9
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
cmp byte [eax + ecx*4 - 0x13], bl
lea ecx, [eax + ecx*4]
je 0x4e28de
push 0xfffffffffffffff7
push dword [esp + 0x24]
lea edx, [ecx - 0x14]
mov ecx, esi
call fcn.00496d50
mov eax, dword [esp + 0x28]
add esp, 8
jmp 0x4e28e9
mov eax, dword [esp + 0x20]
mov dword [ecx - 4], eax
mov byte [ecx - 0x13], 0xf7
movzx ecx, word [eax + 8]
movzx eax, word [eax + 6]
mov edx, dword [edi]
sub ecx, eax
dec ecx
push ecx
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.004e42d0
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x20], eax
lea edx, [eax + 1]
cmp dword [esi + 0x78], eax
jg 0x4e2932
push edx
push 0
push edx
mov edx, 0x10
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
jmp 0x4e2956
mov edi, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edx
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [esp + 0x14]
dec dword [ecx + 0x38]
mov eax, dword [ecx + 0x38]
mov dword [edi + 0x10], eax
inc dword [ecx + 0x2c]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edi + 0x10]
mov dword [edi + 0xc], edx
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4e2990
push 0
push eax
push edx
mov edx, 0xc
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
jmp 0x4e29bb
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 8]
cmp dword [esi + 0x78], ecx
jg 0x4e29dc
push 0
push 0
push edx
mov edx, 0x91
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
jmp 0x4e2a03
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e2a56
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x4e2a2b
push 0
push edx
push eax
mov edx, 0x14
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
jmp 0x4e2a56
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], bl
je 0x4e2a67
mov eax, 0x5d1b70
jmp 0x4e2a7c
mov ecx, dword [esp + 0x28]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [ecx + 0x74]
cmp dword [ecx + 0x78], edx
jg 0x4e2ab1
push eax
push dword [esp + 0x30]
mov edx, 0x4e
push dword [esp + 0x14]
call fcn.00495ff0
add esp, 0xc
jmp 0x4e2ae4
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], bl
je 0x4e2af5
mov eax, 0x5d1b70
jmp 0x4e2b0a
mov ecx, dword [esp + 0x20]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp dword [esp + 0x1c], ebx
je 0x4e2cb8
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 8]
mov dword [esp + 0x20], edx
lea eax, [ecx + 4]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4e2b4c
push 0
push eax
push dword [esp + 0x24]
mov edx, 0x3b
mov ecx, esi
call fcn.00495ff0
mov edx, dword [esp + 0x2c]
lea ebx, [esi + 0x70]
add esp, 0xc
jmp 0x4e2b85
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ebx, [esi + 0x70]
mov eax, dword [ebx]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x3b
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x2c], ebx
cmp dword [esi + 0x78], ecx
jg 0x4e2bab
push 0
push 0
push edx
mov edx, 0x22
mov ecx, esi
call fcn.00495ff0
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4e2bd9
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x22
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x18]
mov ebx, dword [esi + 0x74]
cmp dword [esi + 0x78], ebx
jg 0x4e2c00
push eax
push 0
push edx
mov edx, 0x27
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
mov ebx, eax
jmp 0x4e2c3a
mov edi, dword [esp + 0xc]
lea eax, [ebx + 1]
add edi, dword [esp + 0x18]
lea ecx, [ebx + ebx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esp + 0x20]
cmp byte [eax + 0x57], 0
jne 0x4e2c64
mov eax, dword [esp + 0x2c]
lea ecx, [ebx + ebx*4]
mov edi, dword [esp + 0x30]
sub edi, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 0x10], edi
mov edi, dword [esp + 0x10]
mov byte [eax + ecx*4 + 1], 0xfd
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e2c82
push 0
push 0
push edx
mov edx, 0x81
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
jmp 0x4e2cb8
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x24], 0
jne 0x4e2cdc
push dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, edi
push dword [esp + 0x10]
push dword [ebp + 8]
call fcn.004e24f0
add esp, 0xc
mov dword [esp + 0x24], eax
movzx edx, byte [edi + 0x20]
mov eax, dword [esp + 0xc]
and edx, 1
mov ecx, dword [edi + 8]
add edx, 0x89
mov edi, dword [esi + 0x74]
add eax, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edi
cmp dword [esi + 0x78], edi
jg 0x4e2d18
push eax
push dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00495ff0
add esp, 0xc
mov edi, eax
jmp 0x4e2d5f
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x4e2d7e
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
test ebx, ebx
je 0x4e2dbc
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
test edx, edx
jne 0x4e2d90
mov edx, dword [esi + 0x74]
test ebx, ebx
jns 0x4e2d98
mov ebx, dword [esi + 0x74]
dec ebx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4e2daf
mov eax, 0x5d1b70
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x70]
lea ecx, [ebx + ebx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret