Function at 0x585430
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ecx + 0x208]
mov ecx, dword [ecx]
test byte [ecx + 0xc], 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], ecx
jne 0x58548d
mov ebx, dword [esi + 8]
lea edi, [eax*8]
sub edi, eax
add edi, edi
add edi, edi
add edi, edi
cmp dword [ebp + 0x10], 0
mov eax, dword [edi + ebx + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [edi + ebx + 0x18]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
je 0x585496
test edx, edx
je 0x5854a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x5854a0
cmp word [ebx], 1
jg 0x58548d
mov edx, dword [eax + 0x28]
test edx, edx
mov ecx, dword [eax + 8]
je 0x5854b0
cmp dword [esi + 0x28], 0
jne 0x58548d
cmp dword [eax + 0x2c], 0
jne 0x58548d
cmp dword [esi + 0x24], 0
je 0x5854c0
test edx, edx
jne 0x58548d
cmp word [ecx], 0
je 0x58548d
test byte [eax + 6], 1
jne 0x58548d
test edx, edx
je 0x5854dc
cmp word [ebx], 1
jg 0x58548d
cmp dword [ebp + 0x10], 0
jne 0x58548d
mov cx, word [esi + 6]
and cx, 1
mov word [esp + 0xe], cx
je 0x5854f1
cmp dword [ebp + 0x14], 0
jne 0x58548d
cmp dword [esi + 0x18], 0
je 0x5854fd
cmp dword [eax + 0x18], 0
jne 0x58548d
cmp dword [ebp + 0x10], 0
je 0x585509
cmp dword [eax + 0x18], 0
jne 0x58548d
test edx, edx
je 0x585524
cmp dword [esi + 0xc], 0
jne 0x58548d
test edx, edx
je 0x585524
test cx, cx
jne 0x58548d
test byte [edi + ebx + 0x1d], 0x20
lea ecx, [edi + ebx + 0x1d]
mov dword [esp + 0x30], ecx
jne 0x58548d
cmp dword [eax + 0x1c], 0
je 0x5855cd
cmp dword [eax + 0x18], 0
jne 0x58548d
cmp dword [ebp + 0x10], 0
jne 0x58548d
cmp word [esp + 0xe], 0
jne 0x58548d
cmp word [ebx], 1
jne 0x58548d
mov dl, 5
lea ecx, [ecx]
test byte [eax + 6], dl
jne 0x58548d
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x58558a
cmp byte [eax + 4], 0x71
jne 0x58548d
mov eax, dword [eax + 8]
test eax, eax
je 0x58548d
cmp word [eax], 1
jne 0x58548d
mov eax, ecx
test eax, eax
jne 0x585570
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5855cd
cmp dword [eax], ecx
jle 0x5855cd
mov eax, dword [eax + 0xc]
add eax, 0xe
cmp word [eax], 0
je 0x58548d
mov edx, dword [esi + 0x18]
add ecx, 1
add eax, 0x14
cmp ecx, dword [edx]
jl 0x5855b6
mov ecx, dword [edi + ebx + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x15
mov dword [eax + 0x208], ecx
call fcn.0056fe50
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x208], edx
mov eax, dword [ecx + 0x1c]
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
je 0x585692
lea ebx, [ebx]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0x18]
mov dword [esp + 0x24], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x38], edx
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
call fcn.00569ca0
mov edx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
mov dword [esi + 0x28], edx
mov dword [esi + 0x18], edi
mov dword [esi + 8], ebx
mov byte [esi + 4], 0x71
mov dword [esi + 0x24], 0
jne 0x585660
mov eax, dword [esp + 0x24]
jmp 0x58566e
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], 0
mov edx, dword [esp + 0x10]
mov dword [esi + 0x1c], eax
cmp byte [edx + 0x1e], 0
jne 0x5859d3
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x585610
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + ebx + 8]
mov eax, dword [edi + ebx + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
call fcn.00543400
mov eax, dword [edi + ebx + 0xc]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00543400
mov edx, dword [edi + ebx + 0x10]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00543400
mov eax, dword [edi + ebx + 0x14]
xor ecx, ecx
mov dword [edi + ebx + 8], ecx
mov dword [edi + ebx + 0xc], ecx
mov dword [edi + ebx + 0x10], ecx
mov dword [edi + ebx + 0x18], ecx
lea ebx, [edi + ebx + 0x14]
add esp, 0x18
cmp eax, ecx
je 0x585723
movzx ecx, word [eax + 0x20]
cmp cx, 1
jne 0x585716
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1a8]
test ecx, ecx
jne 0x585705
mov ecx, edx
mov edx, dword [ecx + 0x224]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x224], eax
jmp 0x58571d
add ecx, 0xffffffff
mov word [eax + 0x20], cx
mov dword [ebx], 0
mov ebx, esi
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
mov eax, dword [ebx + 8]
test eax, eax
movsx esi, word [edi]
mov byte [esp + 0xe], 0
mov dword [esp + 0x20], eax
je 0x58574b
mov ecx, dword [esp + 0x30]
mov dl, byte [ecx]
mov byte [esp + 0xe], dl
jmp 0x58576c
mov ecx, dword [esp + 0x10]
push 0
push 0
xor eax, eax
call fcn.00573ee0
add esp, 8
test eax, eax
mov dword [ebx + 8], eax
mov dword [esp + 0x20], eax
je 0x5859b6
cmp esi, 1
jle 0x58579f
mov ecx, dword [ebp + 0xc]
add ecx, 1
push ecx
lea edx, [esi - 1]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00573da0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [ebx + 8], eax
cmp byte [ecx + 0x1e], 0
mov dword [esp + 0x20], eax
jne 0x5859b6
test esi, esi
jle 0x585807
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add edi, 8
lea ecx, [edx + eax + 8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], esi
mov edi, edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x20]
push edx
call fcn.00573d10
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
add esp, 4
mov ecx, 0xe
push 0x38
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
push 0
push esi
call fcn.005e6f30
add dword [esp + 0x28], 0x38
add esi, 0x38
add esp, 0xc
sub dword [esp + 0x2c], 1
mov dword [esp + 0x24], esi
jne 0x5857c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0xe]
mov byte [ecx + edx + 0x1d], al
mov esi, dword [ebx]
xor edi, edi
cmp dword [esi], edi
mov dword [esp + 0x2c], edi
jle 0x58585e
mov ecx, dword [esi + 0xc]
cmp dword [ecx + edi + 4], 0
lea eax, [ecx + edi]
jne 0x58584c
mov eax, dword [eax + 8]
test eax, eax
je 0x58584c
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.00543770
mov ecx, dword [esi + 0xc]
add esp, 8
mov dword [ecx + edi + 4], eax
mov eax, dword [esp + 0x2c]
add eax, 1
add edi, 0x14
cmp eax, dword [esi]
mov dword [esp + 0x2c], eax
jl 0x585823
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx]
push edx
push eax
push ecx
call fcn.00585210
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x5858b3
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 0x10]
push edx
push eax
push ecx
call fcn.00585210
mov edx, dword [edi]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x14]
add esp, 0xc
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.005850f0
add esp, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x5858c6
mov dword [ebx + 0x18], eax
mov dword [edi + 0x18], 0
jmp 0x5858e2
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x5858e2
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.00585210
add esp, 0xc
mov eax, dword [edi + 0xc]
test eax, eax
mov esi, dword [esp + 0x10]
je 0x585901
push 0
push 0
push eax
push esi
call fcn.00569720
add esp, 0x10
mov dword [esp + 0x24], eax
jmp 0x585909
mov dword [esp + 0x24], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0xc]
je 0x585964
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xc], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x14]
push edx
push eax
push ecx
push esi
call fcn.005850f0
push 0
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x14]
push 0
push eax
push esi
call fcn.00569720
mov edx, dword [ebx + 0x14]
push edx
mov ecx, esi
call fcn.00569270
add esp, 0x24
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x10]
push 0
push eax
push esi
call fcn.005699b0
add esp, 0xc
mov dword [ebx + 0x10], eax
jmp 0x585988
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
push esi
call fcn.005850f0
mov dword [ebx + 0xc], eax
push eax
mov eax, dword [esp + 0x38]
mov ecx, esi
call fcn.00569270
add esp, 0x14
mov dword [ebx + 0xc], eax
movzx ecx, byte [edi + 6]
and ecx, 1
or word [ebx + 6], cx
mov eax, dword [edi + 0x28]
test eax, eax
je 0x5859a4
mov dword [ebx + 0x28], eax
mov dword [edi + 0x28], 0
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x14], edx
jne 0x585725
mov esi, dword [esp + 0x34]
test esi, esi
je 0x5859d3
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.005813f0
push esi
push edi
call fcn.00543400
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret