Function at 0x508180
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ecx + 0x1f0]
push ebx
push esi
mov esi, dword [ecx]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
push edi
mov edi, edx
lea eax, [ecx*8]
mov dword [esp + 0x14], edi
sub eax, ecx
inc eax
cmp dword [ebp + 0x10], 0
mov edx, dword [edi + 8]
mov ebx, dword [edx + eax*8 + 0x10]
lea ecx, [edx + eax*8]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x5081da
cmp dword [ebp + 0xc], 0
jne 0x50821d
cmp word [edx], 1
jg 0x50821d
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 8]
test eax, eax
je 0x5081ea
cmp dword [edi + 0x28], 0
jne 0x50821d
cmp dword [ebx + 0x2c], 0
jne 0x50821d
cmp dword [edi + 0x24], 0
je 0x508200
test eax, eax
je 0x508200
cmp dword [ebx + 0x18], 0
jne 0x50821d
cmp word [ecx], 0
je 0x50821d
test byte [ebx + 6], 1
jne 0x508210
test eax, eax
je 0x508226
cmp word [edx], 1
jg 0x50821d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x508229
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test byte [edi + 6], 1
je 0x508235
cmp dword [ebp + 0x10], 0
jne 0x50821d
cmp dword [edi + 0x18], 0
je 0x508241
cmp dword [ebx + 0x18], 0
jne 0x50821d
test ecx, ecx
je 0x50824b
cmp dword [ebx + 0x18], 0
jne 0x50821d
test eax, eax
je 0x508255
cmp dword [edi + 0xc], 0
jne 0x50821d
mov eax, dword [esp + 0x18]
test byte [eax + 0x15], 0x20
jne 0x50821d
cmp dword [ebx + 0x1c], 0
je 0x5082d2
cmp dword [ebx + 0x18], 0
jne 0x50821d
test ecx, ecx
jne 0x50821d
test byte [edi + 6], 1
jne 0x50821d
cmp word [edx], 1
jne 0x50821d
mov eax, ebx
nop dword [eax]
test byte [eax + 6], 5
jne 0x50821d
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x508293
cmp byte [eax + 4], 0x70
jne 0x50821d
mov eax, dword [eax + 8]
test eax, eax
je 0x50821d
cmp word [eax], 1
jne 0x50821d
mov eax, ecx
test eax, eax
jne 0x508280
mov eax, dword [edi + 0x18]
test eax, eax
je 0x5082d2
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
jle 0x5082d2
mov eax, dword [eax + 0xc]
add eax, 0xe
nop
cmp word [eax], 0
je 0x50821d
inc edx
add eax, 0x14
cmp edx, ecx
jl 0x5082c0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x1f0], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x508381
nop
mov eax, dword [esp + 0x14]
mov edx, eax
mov ebx, dword [edi + 0x18]
mov edi, dword [edi + 0x28]
push 0
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov dword [eax + 0x18], 0
mov dword [eax + 8], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x28], 0
call fcn.005251b0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx + 0x28], edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x18], ebx
mov dword [edi + 8], ecx
mov byte [edi + 4], 0x70
mov dword [edi + 0x24], 0
test eax, eax
jne 0x508353
mov eax, dword [esp + 0x28]
jmp 0x508361
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], 0
mov dword [edi + 0x1c], eax
cmp byte [esi + 0x1e], 0
jne 0x50883c
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x5082f0
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + 0x10]
mov ecx, dword [edx]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
test esi, esi
je 0x5083c3
test ecx, ecx
je 0x5083c3
cmp ecx, dword [esi + 0xf0]
jb 0x5083c3
cmp ecx, dword [esi + 0xf4]
jae 0x5083c3
mov eax, dword [esi + 0xec]
mov dword [ecx], eax
dec dword [esi + 0xe4]
mov dword [esi + 0xec], ecx
mov ecx, dword [edx + 4]
jmp 0x5083d7
push ecx
call fcn.00547110
mov edx, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [edx + 4]
test esi, esi
je 0x508404
test ecx, ecx
je 0x508404
cmp ecx, dword [esi + 0xf0]
jb 0x508404
cmp ecx, dword [esi + 0xf4]
jae 0x508404
mov eax, dword [esi + 0xec]
mov dword [ecx], eax
dec dword [esi + 0xe4]
mov dword [esi + 0xec], ecx
mov ecx, dword [edx + 8]
jmp 0x508418
push ecx
call fcn.00547110
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [eax + 8]
test esi, esi
je 0x508442
test ecx, ecx
je 0x508442
cmp ecx, dword [esi + 0xf0]
jb 0x508442
cmp ecx, dword [esi + 0xf4]
jae 0x508442
mov eax, dword [esi + 0xec]
mov dword [ecx], eax
dec dword [esi + 0xe4]
mov dword [esi + 0xec], ecx
jmp 0x50844b
push ecx
call fcn.00547110
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
test ecx, ecx
je 0x50849f
movzx eax, word [ecx + 0x20]
cmp eax, 1
jne 0x50848f
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x20c]
mov dword [ecx + 0x44], eax
mov dword [edx + 0x20c], ecx
jmp 0x508494
dec eax
mov word [ecx + 0x20], ax
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 8]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 3
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
mov edx, dword [edi + 8]
mov byte [esp + 0x13], 0
mov dword [esp + 0x30], eax
movsx ecx, word [eax]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
test edx, edx
je 0x5084dd
mov eax, dword [esp + 0x18]
mov al, byte [eax + 0x15]
mov byte [esp + 0x13], al
jmp 0x508502
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.0051a4d0
mov edx, eax
add esp, 8
mov dword [esp + 0x28], edx
mov dword [edi + 8], edx
test edx, edx
je 0x5087ee
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jle 0x508531
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [ecx - 1]
mov ecx, esi
push eax
call fcn.0051a740
mov edx, eax
add esp, 8
mov dword [edi + 8], edx
cmp byte [esi + 0x1e], 0
mov dword [esp + 0x28], edx
jne 0x5087ee
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x508595
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
add edi, 8
add ebx, 8
add edi, edx
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.0051a910
movups xmm0, xmmword [ebx]
push 0x38
push 0
movups xmmword [edi], xmm0
push ebx
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [ebx + 0x30]
movq qword [edi + 0x30], xmm0
call fcn.004359a0
add esp, 0xc
lea edi, [edi + 0x38]
add ebx, 0x38
sub dword [esp + 0x24], 1
jne 0x508545
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x13]
mov byte [ecx + edx + 0x1d], al
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
cmp dword [eax], ecx
jle 0x5085ed
xor ebx, ebx
mov edi, eax
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx + 4], 0
jne 0x5085d9
mov edx, dword [eax + ebx + 8]
test edx, edx
je 0x5085d9
mov ecx, esi
call fcn.00546bb0
mov ecx, dword [edi + 0xc]
mov dword [ecx + ebx + 4], eax
mov ecx, dword [esp + 0x28]
inc ecx
add ebx, 0x14
mov dword [esp + 0x28], ecx
cmp ecx, dword [edi]
jl 0x5085b5
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x508648
cmp dword [eax], 0
mov dword [esp + 0x28], 0
jle 0x508648
xor ebx, ebx
mov edi, eax
nop
mov edx, dword [edi + 0xc]
push ecx
push dword [esp + 0x20]
mov ecx, esi
mov edx, dword [edx + ebx]
call fcn.00508a30
mov ecx, dword [edi + 0xc]
lea ebx, [ebx + 0x14]
add esp, 8
mov dword [ebx + ecx - 0x14], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [edi]
jl 0x508610
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
cmp dword [ebp + 0xc], 0
je 0x5086be
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x5086a8
cmp dword [eax], 0
mov dword [esp + 0x28], 0
jle 0x5086a8
xor ebx, ebx
mov edi, eax
mov edx, dword [edi + 0xc]
push ecx
push dword [esp + 0x20]
mov ecx, esi
mov edx, dword [edx + ebx]
call fcn.00508a30
mov ecx, dword [edi + 0xc]
lea ebx, [ebx + 0x14]
add esp, 8
mov dword [ebx + ecx - 0x14], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [edi]
jl 0x508670
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
push dword [ebx]
mov edx, dword [edi + 0x14]
mov ecx, esi
push dword [esp + 0x20]
call fcn.00508a30
add esp, 8
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5086d1
mov dword [edi + 0x18], eax
mov dword [ebx + 0x18], 0
jmp 0x50872b
mov eax, dword [edi + 0x18]
mov dword [esp + 0x30], eax
test eax, eax
je 0x50872b
cmp dword [eax], 0
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
jle 0x50872b
xor ebx, ebx
mov edi, eax
mov edx, dword [edi + 0xc]
push ecx
push dword [esp + 0x20]
mov ecx, esi
mov edx, dword [ebx + edx]
call fcn.00508a30
mov ecx, dword [edi + 0xc]
lea ebx, [ebx + 0x14]
add esp, 8
mov dword [ebx + ecx - 0x14], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [edi]
jl 0x5086f3
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x508742
push 0
push 0
mov ecx, esi
call fcn.00525eb0
add esp, 8
jmp 0x508744
xor eax, eax
cmp dword [ebp + 0x10], 0
mov ecx, esi
mov edx, dword [edi + 0xc]
mov dword [esp + 0x28], eax
je 0x50879a
mov dword [edi + 0x14], edx
mov dword [edi + 0xc], eax
push dword [ebx]
push dword [esp + 0x20]
call fcn.00508a30
mov dword [edi + 0x14], eax
mov ecx, esi
mov edx, dword [ebx + 0x14]
push 0
push 0
call fcn.00525eb0
mov edx, dword [edi + 0x14]
mov ecx, esi
push eax
call fcn.00526720
add esp, 0x14
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x10]
mov ecx, esi
push 0
call fcn.00525a80
add esp, 4
mov dword [edi + 0x10], eax
jmp 0x5087bb
push dword [ebx]
push dword [esp + 0x20]
call fcn.00508a30
push dword [esp + 0x30]
mov edx, eax
mov dword [edi + 0xc], eax
mov ecx, esi
call fcn.00526720
add esp, 0xc
mov dword [edi + 0xc], eax
mov ax, word [ebx + 6]
and ax, 1
or word [edi + 6], ax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x5087d8
mov dword [edi + 0x28], eax
mov dword [ebx + 0x28], 0
mov edi, dword [edi + 0x1c]
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebx
test edi, edi
jne 0x5084b2
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x50883c
mov edx, ebx
mov ecx, esi
call fcn.0050e080
test esi, esi
je 0x508833
cmp ebx, dword [esi + 0xf0]
jb 0x508833
cmp ebx, dword [esi + 0xf4]
jae 0x508833
mov eax, dword [esi + 0xec]
mov dword [ebx], eax
mov eax, 1
dec dword [esi + 0xe4]
mov dword [esi + 0xec], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00547110
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret