Function at 0x519ff3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1fc]
mov eax, dword [eax]
test byte [eax + 0xc], 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
je 0x51a017
xor eax, eax
jmp 0x51a04b
mov ecx, dword [ebx + 8]
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x38
mov dword [ebp - 0x20], esi
lea esi, [esi + ecx + 8]
mov eax, dword [esi + 0x18]
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edi
je 0x51a04e
cmp dword [ebp + 0x14], edi
je 0x51a059
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp + 0x14], edi
je 0x51a059
cmp word [ecx], 1
jg 0x51a047
mov edx, dword [eax + 0x28]
cmp edx, edi
je 0x51a065
cmp dword [ebx + 0x28], edi
jne 0x51a047
cmp dword [eax + 0x2c], edi
jne 0x51a047
cmp dword [ebx + 0x24], edi
je 0x51a078
cmp edx, edi
je 0x51a078
cmp dword [eax + 0x18], edi
jne 0x51a047
mov edx, dword [eax + 8]
cmp word [edx], di
je 0x51a047
test byte [eax + 6], 1
jne 0x51a08b
cmp dword [eax + 0x28], edi
je 0x51a096
cmp word [ecx], 1
jg 0x51a047
cmp dword [ebp + 0x10], edi
jne 0x51a047
mov dx, word [ebx + 6]
and dx, 1
je 0x51a0a5
cmp dword [ebp + 0x14], edi
jne 0x51a047
cmp dword [ebx + 0x18], edi
je 0x51a0af
cmp dword [eax + 0x18], edi
jne 0x51a047
cmp dword [ebp + 0x10], edi
je 0x51a0b9
cmp dword [eax + 0x18], edi
jne 0x51a047
cmp dword [eax + 0x28], edi
je 0x51a0c3
cmp dword [ebx + 0xc], edi
jne 0x51a047
test byte [esi + 0x15], 0x20
jne 0x51a047
cmp dword [eax + 0x1c], edi
je 0x51a158
cmp dword [eax + 0x18], edi
jne 0x51a047
cmp dword [ebp + 0x10], edi
jne 0x51a047
cmp dx, di
jne 0x51a047
cmp word [ecx], 1
jne 0x51a047
test byte [eax + 6], 5
jne 0x51a047
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
je 0x51a116
cmp byte [eax + 4], 0x71
jne 0x51a047
mov eax, dword [eax + 8]
cmp eax, edi
je 0x51a047
cmp word [eax], 1
jne 0x51a047
mov eax, ecx
cmp eax, edi
jne 0x51a0fb
mov eax, dword [ebx + 0x18]
cmp eax, edi
je 0x51a158
xor ecx, ecx
cmp dword [eax], edi
jle 0x51a158
mov eax, dword [eax + 0xc]
add eax, 0xe
cmp word [eax], di
je 0x51a047
mov edx, dword [ebx + 0x18]
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x51a144
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
push edi
push edi
push edi
push 0x15
push eax
mov dword [eax + 0x1fc], ecx
call fcn.00516b0e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add esp, 0x14
mov dword [ecx + 0x1fc], eax
jmp 0x51a1e6
mov eax, dword [ebx + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x28]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x1c]
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x18], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x28], edi
call fcn.0051e649
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebx + 8], ecx
mov byte [ebx + 4], 0x71
mov dword [ebx + 0x24], edi
cmp eax, edi
jne 0x51a1cd
mov eax, dword [ebp - 0x18]
jmp 0x51a1d6
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], edi
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x1e], 0
jne 0x51a49f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x51a180
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
call fcn.004f9417
push dword [esi + 4]
push dword [ebp - 8]
call fcn.004f9417
push dword [esi + 8]
push dword [ebp - 8]
call fcn.004f9417
mov eax, dword [esi + 0xc]
add esp, 0x18
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
cmp eax, edi
je 0x51a268
movzx ecx, word [eax + 0x20]
cmp cx, 1
jne 0x51a259
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1a8]
cmp ecx, edi
jne 0x51a24a
mov ecx, edx
add ecx, 0x218
mov edx, dword [ecx]
mov dword [eax + 0x48], edx
mov dword [ecx], eax
jmp 0x51a25e
dec ecx
mov word [eax + 0x20], cx
mov dword [esi + 0xc], edi
jmp 0x51a268
mov esi, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
movsx eax, word [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x51a28d
mov cl, byte [esi + 0x15]
mov byte [ebp + 0xb], cl
jmp 0x51a2a9
push edi
push edi
push edi
push dword [ebp - 8]
call fcn.004fe885
add esp, 0x10
mov dword [ebx + 8], eax
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x51a492
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jle 0x51a2d8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
inc edx
push edx
dec ecx
push ecx
push eax
push esi
call fcn.004fcf4a
add esp, 0x10
mov dword [ebx + 8], eax
cmp byte [esi + 0x1e], 0
mov dword [ebp - 0x10], eax
jne 0x51a492
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
jle 0x51a327
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + edx + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp - 0x18]
push dword [edi + 0x20]
push dword [ebp - 8]
call fcn.004fced3
mov esi, dword [ebp - 4]
push 0xe
pop ecx
push 0x38
push 0
push dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
call fcn.00537010
add dword [ebp - 0x18], 0x38
add dword [ebp - 4], 0x38
add esp, 0x14
dec dword [ebp - 0x1c]
jne 0x51a2f5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp + 0xb]
mov edi, dword [ebp - 8]
mov byte [eax + ecx + 0x1d], dl
mov esi, dword [ebx]
xor eax, eax
cmp dword [esi], eax
mov dword [ebp - 0x18], eax
jle 0x51a37b
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
add eax, ecx
cmp dword [eax + 4], 0
jne 0x51a36d
mov eax, dword [eax + 8]
test eax, eax
je 0x51a36d
push eax
push edi
call fcn.004f99d0
mov edx, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
mov dword [ecx + edx + 4], eax
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add dword [ebp + 8], 0x14
cmp eax, dword [esi]
jl 0x51a345
mov esi, dword [ebp - 0xc]
push dword [esi]
push dword [ebp - 0x14]
push dword [ebx]
push edi
call fcn.00519fb4
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x51a3b6
push dword [esi]
push dword [ebp - 0x14]
push dword [ebx + 0x10]
push edi
call fcn.00519fb4
push dword [esi]
push dword [ebp - 0x14]
push dword [ebx + 0x14]
push edi
call fcn.00519ef2
add esp, 0x20
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x51a3c6
mov dword [ebx + 0x18], eax
and dword [esi + 0x18], 0
jmp 0x51a3dc
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x51a3dc
push dword [esi]
push dword [ebp - 0x14]
push eax
push edi
call fcn.00519fb4
add esp, 0x10
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51a3f4
push 0
push eax
push edi
call fcn.0051e50d
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x51a3f8
and dword [ebp + 8], 0
cmp dword [ebp + 0x14], 0
je 0x51a446
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
push dword [esi]
push dword [ebp - 0x14]
push dword [ebx + 0x14]
push edi
call fcn.00519ef2
push 0
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push edi
call fcn.0051e50d
push eax
push dword [ebx + 0x14]
push edi
call fcn.0051e860
push 0
mov dword [ebx + 0x14], eax
push dword [esi + 0x10]
push edi
call fcn.0051d33a
add esp, 0x34
mov dword [ebx + 0x10], eax
jmp 0x51a467
push dword [esi]
push dword [ebp - 0x14]
push dword [ebx + 0xc]
push edi
call fcn.00519ef2
push dword [ebp + 8]
mov dword [ebx + 0xc], eax
push eax
push edi
call fcn.0051e860
add esp, 0x1c
mov dword [ebx + 0xc], eax
mov ax, word [esi + 6]
and ax, 1
or word [ebx + 6], ax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x51a481
mov dword [ebx + 0x28], eax
and dword [esi + 0x28], 0
mov ebx, dword [ebx + 0x1c]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x51a263
push dword [ebp - 0x28]
push dword [ebp - 8]
call fcn.005171e1
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x51a049