Function at 0x51aaa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
je 0x51aabd
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
cmp dword [ebp - 4], 0
je 0x51aac9
cmp dword [ebp + 0x14], 0
jne 0x51aadc
push 0x18
mov edx, dword [ebp + 8]
push edx
call fcn.00518510
add esp, 8
jmp 0x51b47f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x48]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x48]
add edx, 0x10
push edx
call fcn.005180b0
add esp, 8
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + eax*4]
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax + 4]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax + 4]
shl eax, 8
or edx, eax
mov ecx, dword [ebp + 0x14]
mov word [ecx + 0x10], dx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax + 6]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax + 6]
shl eax, 8
or edx, eax
mov ecx, dword [ebp + 0x14]
mov word [ecx + 0x12], dx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax + 8]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax + 8]
shl eax, 8
or edx, eax
mov ecx, dword [ebp + 0x14]
mov word [ecx + 0x14], dx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax + 0xa]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax + 0xa]
shl eax, 8
or edx, eax
mov ecx, dword [ebp + 0x14]
mov word [ecx + 0x16], dx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax + 0xe]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax + 0xe]
shl eax, 8
or edx, eax
push edx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx + 0xc]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edx + 0xc]
shl edx, 8
or ecx, edx
push ecx
call fcn.00518320
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x450], eax
mov dword [ecx + 0x454], edx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax + 0x10]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax + 0x10]
shl eax, 8
or edx, eax
mov ecx, 1
shl ecx, 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + ecx + 0x10]
shl ecx, 0x10
or edx, ecx
mov eax, 1
imul ecx, eax, 3
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + ecx + 0x10]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], edx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx + 0x14]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edx + 0x14]
shl edx, 8
or ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x14]
shl eax, 0x10
or ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x14]
shl eax, 0x18
or ecx, eax
xor edx, edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx + 0x18]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edx + 0x18]
shl edx, 8
or ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x18]
shl eax, 0x10
or ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x18]
shl eax, 0x18
or ecx, eax
xor edx, edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx + 0x24]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edx + 0x24]
shl edx, 8
or ecx, edx
mov eax, dword [ebp + 0x14]
mov word [eax + 0x30], cx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx + 0x26]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edx + 0x26]
shl edx, 8
or ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x26]
shl eax, 0x10
or ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x26]
shl eax, 0x18
or ecx, eax
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x34], ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx + 0x2a]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + ecx + 0x2a]
shl ecx, 8
or eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx + 0x2a]
shl edx, 0x10
or eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx + 0x2a]
shl edx, 0x18
or eax, edx
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx + 0x1c]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + ecx + 0x1c]
shl ecx, 8
or eax, ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1ff
jae 0x51ae3c
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
jmp 0x51ae43
mov dword [ebp - 0x20], 0x1ff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x2e
push edx
mov eax, dword [ebp + 0x14]
add eax, 0x50
push eax
call fcn.00536b10
add esp, 0xc
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0xc]
mov byte [ecx + 0x50], 0
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax + 0x20]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax + 0x20]
shl eax, 8
or edx, eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x1ff
jae 0x51aea6
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x51aead
mov dword [ebp - 0x24], 0x1ff
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x40], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx + 0x1c]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + ecx + 0x1c]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x2e]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx + 0x1e]
mov ecx, 1
shl ecx, 0
mov esi, dword [ebp - 4]
movzx ecx, byte [esi + ecx + 0x1e]
shl ecx, 8
or edx, ecx
add eax, edx
push eax
mov edx, dword [ebp + 0x14]
add edx, 0x250
push edx
call fcn.00536b10
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0xc]
mov byte [eax + 0x250], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050fed0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0050ffe0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00510060
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x24]
cmp eax, dword [edx + 0x2c]
jb 0x51afb0
ja 0x51af9f
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x20]
cmp eax, dword [edx + 0x28]
jbe 0x51afb0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
jmp 0x51afbf
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edx + 0x3c]
jb 0x51b035
ja 0x51afdd
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
cmp edx, dword [ecx + 0x38]
jbe 0x51b035
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x24]
cmp ecx, dword [eax + 0x2c]
jb 0x51b018
ja 0x51b007
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x20]
cmp ecx, dword [eax + 0x28]
jbe 0x51b018
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
jmp 0x51b027
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
jmp 0x51b044
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x60], 0xffffffff
jne 0x51b47a
cmp dword [ebp - 0x5c], 0
jne 0x51b47a
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx + 0x1e]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edx + 0x1e]
shl edx, 8
or ecx, edx
mov dword [ebp - 0x18], ecx
je 0x51b47a
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx + 0x1c]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + ecx + 0x1c]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x2e]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 4
jae 0x51b0ce
push 9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518510
add esp, 8
jmp 0x51b47f
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ecx + eax]
shl eax, 8
or edx, eax
mov dword [ebp - 0x48], edx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx + 2]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + edx + 2]
shl edx, 8
or ecx, edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 4
cmp eax, dword [ebp - 0x18]
jbe 0x51b13a
push 9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518510
add esp, 8
jmp 0x51b47f
cmp dword [ebp - 0x48], 1
jne 0x51b45b
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 0
je 0x51b162
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x28], 0xffffffff
jne 0x51b25f
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x2c], 0
jne 0x51b25f
cmp dword [ebp - 0x10], 8
jae 0x51b19b
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.00518510
add esp, 8
jmp 0x51b47f
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx ecx, byte [edx + ecx]
shl ecx, 8
or eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx]
shl edx, 0x10
or eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx]
shl edx, 0x18
or eax, edx
mov esi, eax
xor edi, edi
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx + 4]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx ecx, byte [edx + ecx + 4]
shl ecx, 8
or eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 0x10
or eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 0x18
or eax, edx
xor edx, edx
mov cl, 0x20
call fcn.00534c30
or esi, eax
or edi, edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], edi
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
sub edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x20], 0xffffffff
jne 0x51b35c
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x24], 0
jne 0x51b35c
cmp dword [ebp - 0x10], 8
jae 0x51b298
push 9
mov eax, dword [ebp + 8]
push eax
call fcn.00518510
add esp, 8
jmp 0x51b47f
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx edx, byte [eax + edx]
shl edx, 8
or ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax]
shl eax, 0x10
or ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax]
shl eax, 0x18
or ecx, eax
mov esi, ecx
xor edi, edi
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx + 4]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx ecx, byte [edx + ecx + 4]
shl ecx, 8
or eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 0x10
or eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 0x18
or eax, edx
xor edx, edx
mov cl, 0x20
call fcn.00534c30
or esi, eax
or edi, edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], edi
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
sub edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x38], 0xffffffff
jne 0x51b459
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x3c], 0
jne 0x51b459
cmp dword [ebp - 0x10], 8
jae 0x51b395
push 9
mov eax, dword [ebp + 8]
push eax
call fcn.00518510
add esp, 8
jmp 0x51b47f
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx edx, byte [eax + edx]
shl edx, 8
or ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax]
shl eax, 0x10
or ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax]
shl eax, 0x18
or ecx, eax
mov esi, ecx
xor edi, edi
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx + 4]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx ecx, byte [edx + ecx + 4]
shl ecx, 8
or eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 0x10
or eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 0x18
or eax, edx
xor edx, edx
mov cl, 0x20
call fcn.00534c30
or esi, eax
or edi, edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], edi
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
sub edx, 8
mov dword [ebp - 0x10], edx
jmp 0x51b47a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
sub eax, 4
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jne 0x51b0b5
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret