Function at 0x403830
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46614c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x24], eax
push 0xc
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00402df0
add esp, 0xc
mov eax, 1
test eax, eax
je 0x403880
movzx ecx, byte [ebp - 0x11]
and ecx, 0x20
je 0x403880
mov eax, 6
jmp 0x403b63
movzx edx, byte [ebp - 0x11]
and edx, 1
je 0x403923
mov eax, dword [ebp - 0x28]
mov byte [eax + 0xb], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov edx, 1
mov word [ebp - 0xc], dx
jmp 0x4038b5
mov ax, word [ebp - 0xc]
add ax, 1
mov word [ebp - 0xc], ax
movzx ecx, word [ebp - 0xc]
cmp ecx, 0x64
jge 0x4038f0
movzx edx, word [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00402cc0
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.004042b0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4038ee
jmp 0x4038f0
jmp 0x4038a9
movzx ecx, word [ebp - 0xc]
cmp ecx, 0x64
jne 0x403903
mov eax, 7
jmp 0x403b63
cmp dword [ebp - 8], 4
je 0x403911
mov eax, dword [ebp - 8]
jmp 0x403b63
mov edx, dword [ebp - 0x28]
mov al, byte [ebp - 0x11]
mov byte [edx + 0xb], al
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x1c], edx
movzx eax, byte [ebp - 0x11]
and eax, 2
je 0x403966
xor ecx, ecx
mov word [ebp - 4], cx
jmp 0x403940
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + eax*2]
test edx, edx
je 0x403951
jmp 0x403934
movzx eax, word [ebp - 4]
add eax, 0x19
cdq
mov ecx, 0xd
idiv ecx
mov word [ebp - 4], ax
jmp 0x40396f
mov edx, 1
mov word [ebp - 4], dx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403bc0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40398e
mov eax, dword [ebp - 8]
jmp 0x403b63
xor ecx, ecx
mov word [ebp - 0x20], cx
mov dx, word [ebp - 0x20]
mov word [ebp - 0xc], dx
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.00403290
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4039bc
jmp 0x403a2b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov al, byte [edx]
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
cmp ecx, 0xe5
je 0x4039db
movzx edx, byte [ebp - 0x31]
test edx, edx
jne 0x403a0a
movzx eax, word [ebp - 0xc]
test eax, eax
jne 0x4039ee
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 6]
mov word [ebp - 0x20], dx
mov ax, word [ebp - 0xc]
add ax, 1
mov word [ebp - 0xc], ax
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 4]
cmp ecx, edx
jne 0x403a08
jmp 0x403a2b
jmp 0x403a10
xor eax, eax
mov word [ebp - 0xc], ax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403db0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40399c
cmp dword [ebp - 8], 0
jne 0x403af2
movzx edx, word [ebp - 4]
cmp edx, 1
jle 0x403af2
movzx eax, word [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403bc0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403af2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call fcn.00404260
add esp, 4
mov byte [ebp - 0x29], al
mov cx, word [ebp - 4]
sub cx, 1
mov word [ebp - 4], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00403290
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403a9e
jmp 0x403af2
movzx eax, byte [ebp - 0x29]
push eax
movzx ecx, byte [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.00404190
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov byte [ecx + 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00403db0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403af2
mov ax, word [ebp - 4]
sub ax, 1
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
test ecx, ecx
jne 0x403a7e
cmp dword [ebp - 8], 0
jne 0x403b60
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00403290
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403b60
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x30], ecx
push 0x20
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00403b80
add esp, 0xc
push 0xb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00402df0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
movzx edx, byte [ecx + 0xb]
and edx, 0x18
mov eax, dword [ebp - 0x30]
mov byte [eax + 0xc], dl
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov byte [edx + 4], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044892a
mov esp, ebp
pop ebp
ret