Function at 0x50e960
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov byte [ebp - 0x14], 1
push edi
mov edi, edx
mov byte [ebp - 0x10], 0x81
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov ebx, dword [esi + 0x30]
add ebx, edx
lea ecx, [eax + 1]
mov byte [ebp - 5], bl
cmp ebx, edx
cmovae ecx, eax
mov eax, ecx
mov byte [ebp - 9], cl
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 6], al
cmp edx, 0x1b8
jne 0x50e9ed
add dword [esi + 0x30], 0xfffffff8
lea edx, [ebp - 0x10]
push 0
push 8
mov ecx, esi
call fcn.0050eb90
mov eax, dword [esi + 0x30]
add esp, 8
jmp 0x50ea78
jge 0x50ea1e
test edx, edx
jne 0x50e9fa
mov dword [esi + 0x3c], 1
lea eax, [ebx - 0x1b8]
mov ecx, esi
mov dword [esi + 0x30], eax
mov eax, 0x1b8
sub eax, edx
cdq
push edx
push eax
mov edx, 0x531300
call fcn.0050eb90
add esp, 8
jmp 0x50ea61
lea eax, [ebx - 0x200]
mov ecx, esi
mov dword [esi + 0x30], eax
mov eax, 0x200
sub eax, edx
cdq
push edx
push eax
mov edx, 0x531300
call fcn.0050eb90
add dword [esi + 0x30], 0xfffffe48
mov edx, 0x531301
push 0
push 0x1b8
mov ecx, esi
call fcn.0050eb90
add esp, 0x10
mov dword [esi + 0x3c], 1
push 0
push 8
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.0050eb90
mov eax, dword [esi + 0x30]
add esp, 8
sub eax, 8
add eax, 0xffffffc0
lea edx, [ebp - 0xc]
push 0
push 0x40
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.0050eb90
movzx eax, byte [esi + 3]
add esp, 8
mov byte [edi], al
movzx eax, byte [esi + 2]
mov byte [edi + 1], al
mov eax, dword [esi]
shr eax, 8
mov byte [edi + 2], al
movzx eax, byte [esi]
mov byte [edi + 3], al
movzx eax, byte [esi + 7]
mov byte [edi + 4], al
movzx eax, byte [esi + 6]
mov byte [edi + 5], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [edi + 6], al
movzx eax, byte [esi + 4]
mov byte [edi + 7], al
movzx eax, byte [esi + 0xb]
mov byte [edi + 8], al
movzx eax, byte [esi + 0xa]
mov byte [edi + 9], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 0xa], al
movzx eax, byte [esi + 8]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0xf]
mov byte [edi + 0xc], al
movzx eax, byte [esi + 0xe]
mov byte [edi + 0xd], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0xc]
mov byte [edi + 0xf], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 0x10], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 0x11], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [edi + 0x12], al
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x13], al
movzx eax, byte [esi + 0x17]
mov byte [edi + 0x14], al
movzx eax, byte [esi + 0x16]
mov byte [edi + 0x15], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [edi + 0x16], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0x17], al
movzx eax, byte [esi + 0x1b]
mov byte [edi + 0x18], al
movzx eax, byte [esi + 0x1a]
mov byte [edi + 0x19], al
mov eax, dword [esi + 0x18]
shr eax, 8
mov byte [edi + 0x1a], al
movzx eax, byte [esi + 0x18]
mov byte [edi + 0x1b], al
movzx eax, byte [esi + 0x1f]
mov byte [edi + 0x1c], al
movzx eax, byte [esi + 0x1e]
mov byte [edi + 0x1d], al
mov eax, dword [esi + 0x1c]
shr eax, 8
mov byte [edi + 0x1e], al
movzx eax, byte [esi + 0x1c]
mov byte [edi + 0x1f], al
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3717
mov esp, ebp
pop ebp
ret