Function at 0x4038c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x24], eax
push 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00403250
add esp, 0xc
mov eax, 2
test eax, eax
je 0x40391f
mov ecx, dword [ebp - 0xd]
and ecx, 0xff
and ecx, 0x20
test ecx, ecx
je 0x40391f
mov eax, 6
jmp 0x403b92
mov edx, dword [ebp - 0xd]
and edx, 0xff
and edx, 1
test edx, edx
je 0x4039ce
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xb], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov word [ebp - 8], 1
jmp 0x403958
mov dx, word [ebp - 8]
add dx, 1
mov word [ebp - 8], dx
mov eax, dword [ebp - 8]
and eax, 0xffff
cmp eax, 0x64
jge 0x403997
mov cx, word [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00401005
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.00404760
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403995
jmp 0x403997
jmp 0x40394c
mov eax, dword [ebp - 8]
and eax, 0xffff
cmp eax, 0x64
jne 0x4039ae
mov eax, 7
jmp 0x403b92
cmp dword [ebp - 4], 4
je 0x4039bc
mov eax, dword [ebp - 4]
jmp 0x403b92
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0xd]
mov byte [ecx + 0xb], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0xd]
and edx, 0xff
and edx, 2
test edx, edx
je 0x403a23
mov word [ebp - 8], 0
jmp 0x4039f2
mov ax, word [ebp - 8]
add ax, 1
mov word [ebp - 8], ax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + ecx*2]
test eax, eax
je 0x403a0a
jmp 0x4039e6
mov eax, dword [ebp - 8]
and eax, 0xffff
add eax, 0x19
cdq
mov ecx, 0xd
idiv ecx
mov word [ebp - 0xc], ax
jmp 0x403a29
mov word [ebp - 0xc], 1
mov edx, dword [ebp - 0xc]
and edx, 0xffff
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004044b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403b20
mov cx, word [ebp - 0xc]
sub cx, 1
mov word [ebp - 0xc], cx
mov edx, dword [ebp - 0xc]
and edx, 0xffff
test edx, edx
je 0x403b20
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 6]
mov edx, dword [ebp - 0xc]
and edx, 0xffff
sub ecx, edx
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00403cc0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403b20
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
call fcn.004046d0
add esp, 4
mov byte [ebp - 0x20], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00402b40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403ac9
jmp 0x403b20
mov cl, byte [ebp - 0x20]
push ecx
mov dl, byte [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call fcn.004045a0
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov byte [edx + 4], 1
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403f30
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403b20
mov cx, word [ebp - 0xc]
sub cx, 1
mov word [ebp - 0xc], cx
mov edx, dword [ebp - 0xc]
and edx, 0xffff
test edx, edx
jne 0x403aa9
cmp dword [ebp - 4], 0
jne 0x403b8f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00402b40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403b8f
push 0x20
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00403c60
add esp, 0xc
push 0xb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call fcn.00403250
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
xor eax, eax
mov al, byte [edx + 0xb]
and eax, 0x18
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov byte [edx + 0xc], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov byte [ecx + 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x64
cmp ebp, esp
call fcn.0041692a
mov esp, ebp
pop ebp
ret