Function at 0x4ee540
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov esi, eax
movzx eax, byte [esi + 6]
movzx ebp, word [esi + 0x12]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
push edi
movzx edi, byte [esi + 1]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x34]
add edi, ebp
add edi, eax
cmp eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jge 0x4ee5b5
mov edx, dword [esp + 0x40]
push edx
mov ecx, ebx
sub ecx, eax
push ecx
push esi
mov ecx, eax
call fcn.004ee450
mov ecx, dword [esi + 0x40]
lea edx, [ebp + ebp]
mov dword [esp + 0x44], eax
push edx
lea eax, [ecx + eax*2]
push eax
push ecx
call fcn.00412fb0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
add esp, 0x18
sub ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add ecx, ebx
cmp ecx, edi
jge 0x4ee5da
mov edx, dword [esp + 0x40]
push edx
sub edi, ecx
push edi
push esi
call fcn.004ee450
mov edx, dword [esp + 0x24]
add esp, 0xc
sub ebp, eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
lea ecx, [edi + edx + 5]
mov dword [esp + 0x28], ecx
movzx ecx, byte [ecx]
lea edi, [edi + edx + 6]
mov dword [esp + 0x2c], edi
movzx edi, byte [edi]
shl ecx, 8
or ecx, edi
dec ecx
and ecx, 0xffff
lea edx, [ecx + edx + 1]
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x10]
jb 0x4ee71a
cmp ebx, eax
jge 0x4ee66a
mov ecx, dword [esp + 0x3c]
sub eax, ebx
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x4ee628
mov dword [esp + 0x38], eax
mov edi, dword [esi + 0x40]
mov eax, dword [esp + 0x38]
lea edx, [ebp + ebp]
push edx
lea ecx, [edi + eax*2]
push edi
push ecx
call fcn.00412fb0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
mov eax, ebx
call fcn.004ee360
add esp, 0x24
test eax, eax
jne 0x4ee71a
add ebp, dword [esp + 0x38]
cmp byte [esi + 1], 0
mov dword [esp + 0x1c], 0
jbe 0x4ee6ed
lea eax, [esi + 0x16]
mov dword [esp + 0x38], eax
nop
mov ecx, dword [esp + 0x38]
movzx edi, word [ecx]
sub edi, ebx
add edi, dword [esp + 0x34]
js 0x4ee6d7
cmp edi, dword [esp + 0x3c]
jge 0x4ee6d7
mov edx, dword [esi + 0x40]
mov ecx, ebp
sub ecx, edi
lea eax, [edx + edi*2]
add ecx, ecx
push ecx
push eax
mov dword [esp + 0x2c], eax
add eax, 2
push eax
call fcn.00412fb0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
push edx
push 1
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push ecx
lea eax, [edi + ebx]
push esi
inc ebp
call fcn.004ee360
add esp, 0x24
test eax, eax
jne 0x4ee71a
mov eax, dword [esp + 0x1c]
movzx edx, byte [esi + 1]
add dword [esp + 0x38], 2
inc eax
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x4ee680
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x40]
lea ecx, [eax + ebp*2]
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
sub eax, ebp
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
push edx
lea eax, [ebx + ebp]
push esi
call fcn.004ee360
add esp, 0x18
test eax, eax
je 0x4ee74d
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edi
mov eax, ebx
call fcn.004c4150
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 8]
lea ecx, [eax + ebx*2]
push ecx
mov ecx, dword [esp + 0x44]
lea eax, [edx + ebx*4]
push eax
push ecx
call fcn.004ee220
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov word [esi + 0x12], ax
mov edx, eax
mov eax, dword [esp + 0x20]
shr edx, 8
mov byte [esi + 1], 0
mov byte [eax + ecx + 3], dl
mov dl, byte [esi + 0x12]
mov esi, dword [esp + 0x28]
mov byte [eax + ecx + 4], dl
mov eax, dword [esp + 0x14]
mov edx, eax
sub edx, ecx
sar edx, 8
pop edi
sub al, cl
mov ecx, dword [esp + 0x28]
mov byte [esi], dl
pop esi
pop ebp
mov byte [ecx], al
xor eax, eax
pop ebx
add esp, 0x20
ret