Function at 0x50666c
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ecx
mov ebx, eax
mov dword [ebx + 0x2b4], 0xffffffff
mov byte [ebx + 0x208], 0
mov byte [ebx + 0x172], 0
movzx eax, word [ebx + 0x1a]
call fcn.00512b78
mov dword [ebx + 0x160], eax
xor eax, eax
mov al, byte [ebx + 0x12]
mov dx, word [ebx + 0x1a]
call fcn.005122cc
mov dword [esp], eax
cmp dword [esp], 0
je case.0x5066ca.9
mov eax, dword [ebx + 0x204]
add eax, 0xfffffff7
cmp eax, 0x19
ja case.0x5066ca.9
mov al, byte [eax + 0x5066d1]
jmp dword [eax*4 + 0x5066eb]
mov eax, dword [esp]
movzx eax, word [eax + 2]
mov edx, dword [esp]
movzx edx, word [edx + 4]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 2]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [esp]
movzx eax, word [eax + 6]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
mov eax, dword [esp]
movzx eax, word [eax + 2]
mov dword [ebx + 0x300], eax
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00514b84
jmp case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0xc]
mov edx, dword [esp]
movzx edx, word [edx + 0xe]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0xa]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0xc]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x10]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
mov eax, dword [esp]
movzx eax, word [eax + 0x12]
mov dword [ebx + 0x2e4], eax
xor eax, eax
mov dword [ebx + 0x2e8], eax
mov eax, 1
mov dword [ebx + 0x2ec], eax
cmp dword [ebx + 0x204], 0xb
jne 0x506822
push 0
mov edx, dword [ebx + 0x2b0]
sub edx, dword [ebx + 0x2ac]
inc edx
push edx
xor edx, edx
mov dl, byte [ebx + 0x10]
mov ecx, eax
mov eax, ebx
call fcn.00514b84
jmp case.0x5066ca.9
push 0
mov eax, dword [ebx + 0x2b0]
sub eax, dword [ebx + 0x2ac]
inc eax
push eax
xor eax, eax
mov al, byte [ebx + 0x10]
call fcn.0052762c
mov edx, eax
mov ecx, dword [ebx + 0x2ec]
mov eax, ebx
call fcn.00514b84
jmp case.0x5066ca.9
cmp byte [ebx + 0x12], 0x17
jne 0x506865
mov eax, dword [esp]
movzx eax, word [eax + 0x3c]
mov dword [ebx + 0x2ac], eax
jmp 0x50688b
mov eax, dword [esp]
movzx eax, word [eax + 0x3e]
mov edx, dword [esp]
movzx edx, word [edx + 0x40]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0x3c]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov eax, dword [esp]
movzx eax, word [eax + 0x3e]
add eax, dword [ebx + 0x2ac]
dec eax
mov dword [ebx + 0x2b0], eax
mov eax, dword [esp]
movzx eax, word [eax + 0x42]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00514b84
jmp case.0x5066ca.9
cmp byte [ebx + 0x12], 0x37
jne case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0x20]
mov edx, dword [esp]
movzx edx, word [edx + 0x22]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0x1e]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x20]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x24]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
mov byte [ebx + 0x208], 1
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00514b84
jmp case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0x16]
mov edx, dword [esp]
movzx edx, word [edx + 0x18]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x16]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x1a]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x20c], eax
mov al, byte [ebx + 0x12]
cmp al, 0x10
je 0x5069a8
cmp al, 0x36
jne 0x5069af
mov byte [ebx + 0x172], 1
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00514b84
jmp case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0x2a]
mov edx, dword [esp]
movzx edx, word [edx + 0x2c]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0x28]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x2a]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [ebx + 0x2f4]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
jmp case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0x34]
mov edx, dword [esp]
movzx edx, word [edx + 0x36]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0x32]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x34]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov dword [ebx + 0x2ac], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x38]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
jmp case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0x34]
mov edx, dword [esp]
movzx edx, word [edx + 0x36]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0x32]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x34]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x38]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
cmp byte [ebx + 0x12], 0x16
je case.0x5066ca.9
mov byte [ebx + 0x172], 1
jmp case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0x3c]
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x3e]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x42]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
jmp case.0x5066ca.9
mov eax, dword [esp]
movzx eax, word [eax + 0x3e]
mov edx, dword [esp]
movzx edx, word [edx + 0x40]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x10]
imul edx
mov edx, dword [esp]
movzx edx, word [edx + 0x3c]
add eax, edx
mov dword [ebx + 0x2ac], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x3e]
add edx, eax
dec edx
mov dword [ebx + 0x2b0], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x42]
mov dword [ebx + 0x2d8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2dc], eax
pop edx
pop ebx
ret