Function at 0x583df0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, eax
mov eax, dword [esp + 0x38]
mov ebx, dword [eax]
test byte [ebx + 0x3c], 1
mov ecx, dword [eax + 0x20c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ebx
je 0x583e23
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0x28]
lea ebp, [ebp + ebp*8]
add ebp, ebp
add ebp, ebp
add ebp, ebp
cmp dword [esp + 0x40], 0
mov eax, dword [ecx + ebp + 0x34]
mov dword [esp + 0x18], eax
lea eax, [ecx + ebp + 0x1c]
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
je 0x583e64
test edx, edx
je 0x583e6d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
test edx, edx
je 0x583e6d
cmp byte [ecx], 1
ja 0x583e5a
mov edx, dword [edi + 0x48]
mov eax, dword [edi + 0x28]
test edx, edx
je 0x583e7d
cmp dword [esi + 0x48], 0
jne 0x583e5a
cmp dword [edi + 0x4c], 0
jne 0x583e5a
cmp dword [esi + 0x44], 0
je 0x583e8d
test edx, edx
jne 0x583e5a
cmp byte [eax], 0
je 0x583e5a
test byte [edi + 6], 1
jne 0x583e5a
test edx, edx
je 0x583ea8
cmp byte [ecx], 1
ja 0x583e5a
cmp dword [esp + 0x44], 0
jne 0x583e5a
mov ax, word [esi + 6]
and ax, 1
mov word [esp + 0x10], ax
je 0x583ebe
cmp dword [esp + 0x48], 0
jne 0x583e5a
cmp dword [esi + 0x38], 0
je 0x583eca
cmp dword [edi + 0x38], 0
jne 0x583e5a
cmp dword [esp + 0x44], 0
je 0x583ed7
cmp dword [edi + 0x38], 0
jne 0x583e5a
test edx, edx
je 0x583ef5
cmp dword [esi + 0x2c], 0
jne 0x583e5a
test edx, edx
je 0x583ef5
cmp word [esp + 0x10], 0
jne 0x583e5a
test byte [ecx + ebp + 0x28], 0x20
lea eax, [ecx + ebp + 0x28]
mov dword [esp + 0x34], eax
jne 0x583e5a
cmp dword [edi + 0x3c], 0
je 0x583fa5
cmp dword [edi + 0x38], 0
jne 0x583e5a
cmp dword [esp + 0x44], 0
jne 0x583e5a
cmp word [esp + 0x10], 0
jne 0x583e5a
cmp byte [ecx], 1
jne 0x583e5a
mov eax, edi
mov edi, edi
test byte [eax + 6], 5
jne 0x583e5a
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x583f5b
cmp byte [eax + 4], 0x72
jne 0x583e5a
mov edx, dword [eax + 0x28]
cmp byte [edx], 1
jb 0x583e5a
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x583e5a
mov eax, ecx
test eax, eax
jne 0x583f40
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x583fa5
cmp dword [ecx], eax
jle 0x583fa5
mov ecx, dword [ecx + 8]
add ecx, 0x14
lea esp, [esp]
cmp word [ecx], 0
je 0x583e5a
mov edx, dword [esi + 0x38]
inc eax
add ecx, 0x18
cmp eax, dword [edx]
jl 0x583f90
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + ebp + 0x10]
push 0
lea edi, [eax + ebp + 0x10]
mov eax, dword [esp + 0x40]
push 0
push 0
push 0x15
mov dword [esp + 0x40], edi
mov dword [eax + 0x20c], ecx
call fcn.005773f0
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x20c], edx
mov eax, dword [ecx + 0x3c]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x58407f
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x4c]
mov ebp, dword [esi + 0x38]
mov edi, dword [esi + 0x48]
mov dword [esp + 0x20], eax
xor eax, eax
push eax
push esi
push ebx
mov dword [esp + 0x1c], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call fcn.00576aa0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], ebp
mov dword [esi + 0x28], edx
mov byte [esi + 4], 0x72
mov dword [esi + 0x44], 0
test eax, eax
jne 0x584049
mov eax, dword [esp + 0x20]
jmp 0x584057
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x44], 0
mov dword [esi + 0x3c], eax
cmp byte [ebx + 0x40], 0
jne 0x5843a1
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x583ff0
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov eax, dword [ecx + ebp + 0xc]
mov ecx, ebx
call fcn.0055d830
mov eax, dword [edi]
mov ecx, ebx
call fcn.0055d830
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ebp + 0x14]
mov ecx, ebx
call fcn.0055d830
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov dword [eax + ebp + 0xc], ecx
mov dword [eax + ebp + 0x14], ecx
lea ebp, [eax + ebp + 0x18]
mov eax, dword [ebp]
mov dword [edi], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x58410c
movzx ecx, word [eax + 0x28]
cmp cx, 1
jne 0x584100
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x1b8]
test ecx, ecx
jne 0x5840ef
mov ecx, edx
mov edx, dword [ecx + 0x22c]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x22c], eax
jmp 0x584105
dec ecx
mov word [eax + 0x28], cx
mov dword [ebp], 0
mov ebp, esi
mov edi, edi
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x28]
mov eax, dword [ebp + 0x28]
movzx esi, byte [edi]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x584136
mov ecx, dword [esp + 0x34]
mov dl, byte [ecx]
mov byte [esp + 0x3c], dl
jmp 0x584155
push 0
xor ecx, ecx
xor eax, eax
mov edx, ebx
call fcn.005782e0
add esp, 4
mov dword [ebp + 0x28], eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x584393
cmp esi, 1
jle 0x58417f
mov ecx, dword [esp + 0x40]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
mov ecx, ebx
call fcn.0056fbf0
add esp, 8
mov dword [ebp + 0x28], eax
cmp byte [ebx + 0x40], 0
mov dword [esp + 0x14], eax
jne 0x584393
test esi, esi
jle 0x5841e1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add edi, 8
lea edx, [eax + ecx + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], esi
mov edi, edi
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x34]
mov eax, ebx
call fcn.00565510
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ecx, 0x12
push 0x48
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
push 0
push esi
call fcn.005dfd60
add dword [esp + 0x1c], 0x48
add esi, 0x48
add esp, 0xc
sub dword [esp + 0x28], 1
mov dword [esp + 0x20], esi
jne 0x5841a0
mov ecx, dword [esp + 0x24]
mov al, byte [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov byte [ecx + edx + 0x28], al
mov ecx, dword [ebp]
xor eax, eax
cmp dword [ecx], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
jle 0x584263
mov dword [esp + 0x3c], eax
lea ebx, [ebx]
mov edx, dword [ecx + 8]
add eax, edx
cmp dword [eax + 4], 0
jne 0x58424b
mov ecx, dword [esp + 0x2c]
mov ebx, dword [eax + 8]
push ecx
call fcn.00569940
add esp, 4
mov esi, eax
call fcn.0055da10
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 8]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov dword [ecx + eax + 4], esi
mov ecx, edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
inc edx
add eax, 0x18
cmp edx, dword [ecx]
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], eax
jl 0x584210
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp]
push edx
push eax
push ebx
call fcn.00583db0
add esp, 0xc
cmp dword [esp + 0x44], 0
je 0x5842a7
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
mov esi, dword [ebp + 0x30]
push ecx
push edx
push ebx
call fcn.00583db0
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x34]
push eax
push ecx
push edx
push ebx
call fcn.00583cb0
add esp, 0x1c
mov dword [ebp + 0x34], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x5842ba
mov dword [ebp + 0x38], eax
mov dword [edi + 0x38], 0
jmp 0x5842d2
mov esi, dword [ebp + 0x38]
test esi, esi
je 0x5842d2
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebx
call fcn.00583db0
add esp, 0xc
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x5842eb
push 0
push 0
push eax
push ebx
call fcn.0057f9c0
add esp, 0x10
mov esi, eax
jmp 0x5842ed
xor esi, esi
cmp dword [esp + 0x48], 0
je 0x58433e
mov edx, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x2c], esi
mov eax, dword [edi]
push eax
push ecx
push edx
push ebx
call fcn.00583cb0
push 0
mov dword [ebp + 0x34], eax
mov eax, dword [edi + 0x34]
push 0
push eax
push ebx
call fcn.0057f9c0
mov ecx, dword [ebp + 0x34]
mov edx, ebx
call fcn.005764b0
mov dword [ebp + 0x34], eax
mov eax, dword [edi + 0x30]
push 0
push eax
push ebx
call fcn.0056e600
add esp, 0x2c
mov dword [ebp + 0x30], eax
jmp 0x584364
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x2c]
push ecx
push edx
push eax
push ebx
call fcn.00583cb0
mov ecx, eax
add esp, 0x10
mov eax, esi
mov edx, ebx
mov dword [ebp + 0x2c], ecx
call fcn.005764b0
mov dword [ebp + 0x2c], eax
mov cx, word [edi + 6]
and cx, 1
or word [ebp + 6], cx
mov eax, dword [edi + 0x48]
test eax, eax
je 0x584381
mov dword [ebp + 0x48], eax
mov dword [edi + 0x48], 0
mov ebp, dword [ebp + 0x3c]
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x18], edx
test ebp, ebp
jne 0x584110
mov eax, dword [esp + 0x30]
push eax
push ebx
call fcn.005664a0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret