Function at 0x584fa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c3f60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x34]
mov eax, dword [ebp + 0xc]
push ebx
push edi
lea edi, [esi + 0x34]
mov dword [ebp - 0x20], ecx
cmp edx, ecx
je 0x585000
cmp ecx, ecx
je 0x584ffd
lea esp, [esp]
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ebx, dword [ecx + 0xc]
mov dword [edx + 0xc], ebx
mov ebx, dword [ecx + 0x10]
mov dword [edx + 0x10], ebx
mov ebx, dword [ecx + 0x14]
mov dword [edx + 0x14], ebx
add ecx, 0x18
add edx, 0x18
cmp ecx, dword [ebp - 0x20]
jne 0x584fd0
mov dword [edi + 4], edx
movzx ecx, word [eax + 2]
mov dword [esi + 0x74], ecx
movzx edx, word [eax]
mov dword [esi + 0x78], edx
movzx ecx, word [eax + 6]
mov dword [esi + 0x7c], ecx
movzx edx, word [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x84], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ebx, 0x64
lea eax, [ebp - 0x1c]
mov dword [esi + 0x80], edx
mov dword [esi + 0x70], 0x1e001e
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0xc00166
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x201
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xc00166
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0xc00166
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x202
mov dword [ebp - 0x10], 0xc00166
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0x16100a5
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x201
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x16100a5
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0x16100a5
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x202
mov dword [ebp - 0x10], 0x16100a5
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0xdc015c
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x201
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xdc015c
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0xdc015c
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x202
mov dword [ebp - 0x10], 0xdc015c
mov dword [ebp - 0x18], ebx
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov ebx, 0xd
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x102
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x1b58
call fcn.00582060
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x102
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0xc8
call fcn.00582060
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x48]
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x44]
cmp ecx, eax
je 0x585347
mov edx, eax
cmp eax, eax
je 0x585344
mov edi, dword [edx]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov edi, dword [edx + 0xc]
mov dword [ecx + 0xc], edi
mov edi, dword [edx + 0x10]
mov dword [ecx + 0x10], edi
mov edi, dword [edx + 0x14]
mov dword [ecx + 0x14], edi
add edx, 0x18
add ecx, 0x18
cmp edx, eax
jne 0x585318
mov dword [esi + 0x48], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
pop edi
xor ecx, ebp
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], eax
pop ebx
call 0x69db7e
mov esp, ebp
pop ebp
ret 0x18