Function at 0x513ae8
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ecx
mov ebx, eax
mov dword [ebx + 0x288], 0xffffffff
mov byte [ebx + 0x1b8], 0
mov byte [ebx + 0x14a], 0
movzx eax, word [ebx + 0x1c]
call fcn.0051e17c
mov dword [ebx + 0x134], eax
xor eax, eax
mov al, byte [ebx + 0x12]
mov dx, word [ebx + 0x1c]
call fcn.0051d8d0
mov dword [esp], eax
cmp dword [esp], 0
je case.0x513b46.9
mov eax, dword [ebx + 0x1b4]
add eax, 0xfffffff7
cmp eax, 0x19
ja case.0x513b46.9
mov al, byte [eax + 0x513b4d]
jmp dword [eax*4 + 0x513b67]
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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 2]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [esp]
movzx eax, word [eax + 6]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
mov eax, dword [esp]
movzx eax, word [eax + 2]
mov dword [ebx + 0x2d4], eax
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00520098
jmp case.0x513b46.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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0xc]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x10]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
mov eax, dword [esp]
movzx eax, word [eax + 0x12]
mov dword [ebx + 0x2b8], eax
xor eax, eax
mov dword [ebx + 0x2bc], eax
mov eax, 1
mov dword [ebx + 0x2c0], eax
cmp dword [ebx + 0x1b4], 0xb
jne 0x513c9e
push 0
mov edx, dword [ebx + 0x284]
sub edx, dword [ebx + 0x280]
inc edx
push edx
xor edx, edx
mov dl, byte [ebx + 0x10]
mov ecx, eax
mov eax, ebx
call fcn.00520098
jmp case.0x513b46.9
push 0
mov eax, dword [ebx + 0x284]
sub eax, dword [ebx + 0x280]
inc eax
push eax
xor eax, eax
mov al, byte [ebx + 0x10]
call fcn.005389a0
mov edx, eax
mov ecx, dword [ebx + 0x2c0]
mov eax, ebx
call fcn.00520098
jmp case.0x513b46.9
cmp byte [ebx + 0x12], 0x17
jne 0x513ce1
mov eax, dword [esp]
movzx eax, word [eax + 0x3c]
mov dword [ebx + 0x280], eax
jmp 0x513d07
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 + 0x280], eax
mov eax, dword [esp]
movzx eax, word [eax + 0x3e]
add eax, dword [ebx + 0x280]
dec eax
mov dword [ebx + 0x284], eax
mov eax, dword [esp]
movzx eax, word [eax + 0x42]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00520098
jmp case.0x513b46.9
cmp byte [ebx + 0x12], 0x37
jne case.0x513b46.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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x20]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x24]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
mov byte [ebx + 0x1b8], 1
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00520098
jmp case.0x513b46.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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x16]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x1a]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x1bc], eax
mov al, byte [ebx + 0x12]
cmp al, 0x10
je 0x513e24
cmp al, 0x36
jne 0x513e2b
mov byte [ebx + 0x14a], 1
push 0
push 1
xor edx, edx
mov dl, byte [ebx + 0x10]
xor ecx, ecx
mov eax, ebx
call fcn.00520098
jmp case.0x513b46.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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x2a]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [ebx + 0x2c8]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
jmp case.0x513b46.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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x34]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov dword [ebx + 0x280], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x38]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
jmp case.0x513b46.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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x34]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x38]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
cmp byte [ebx + 0x12], 0x16
je case.0x513b46.9
mov byte [ebx + 0x14a], 1
jmp case.0x513b46.9
mov eax, dword [esp]
movzx eax, word [eax + 0x3c]
mov dword [ebx + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x3e]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x42]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
jmp case.0x513b46.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 + 0x280], eax
mov edx, dword [esp]
movzx edx, word [edx + 0x3e]
add edx, eax
dec edx
mov dword [ebx + 0x284], edx
mov eax, dword [esp]
movzx eax, word [eax + 0x42]
mov dword [ebx + 0x2ac], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2b0], eax
pop edx
pop ebx
ret