Function at 0x40d320
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416468
push 0x40454c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0
jne 0x40d351
jmp 0x40d60c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
jmp 0x40d36e
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x40d385
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
cmp eax, dword [ebp + 8]
jne 0x40d383
jmp 0x40d60c
jmp 0x40d365
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00413b64
test eax, eax
je 0x40d39a
jmp 0x40d60c
mov edx, dword [0x4199a4]
add edx, 1
mov dword [0x4199a4], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [0x418c80]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx], 0x4550
jne 0x40d5c1
cmp dword [0x419714], 1
jne 0x40d3fa
cmp dword [ebp + 8], 0x80000000
jbe 0x40d3fa
push 0
push 0
push 0
push 0
call dword [fcn.0041980c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x80]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 1
cmp dword [0x419714], 1
jne 0x40d497
mov dword [ebp - 0x40], 0
jmp 0x40d42b
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x40], eax
jae 0x40d497
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x38]
lea ecx, [eax + edx + 0x18]
mov edx, dword [ebp - 0x40]
imul edx, edx, 0x28
add ecx, edx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
add ecx, dword [eax + 0xc]
cmp ecx, dword [ebp - 0x20]
ja 0x40d495
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x44]
add eax, dword [ecx + 8]
cmp dword [ebp - 0x20], eax
ja 0x40d495
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x24]
and eax, 0x10000000
test eax, eax
je 0x40d493
push 0
push 0
push 0
push 0
call dword [fcn.0041980c]
jmp 0x40d497
jmp 0x40d422
mov dword [ebp - 4], 0
jmp 0x40d4be
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x84]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], 0
jmp 0x40d4e5
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x1c]
jae 0x40d5c1
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0xc], 0
je 0x40d52d
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0xc]
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov cl, byte [eax + edx]
test ecx, ecx
jne 0x40d532
jmp 0x40d5c1
mov edx, dword [ebp - 0x3c]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
add ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.0041327f
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
mov dword [0x418c80], eax
cmp dword [ebp - 0x4c], 0
je 0x40d573
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0040d320
add esp, 0xc
push 0
call dword [fcn.004197ac]
cmp eax, dword [ebp + 8]
je 0x40d5bc
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [0x41e160]
call fcn.00413b64
test eax, eax
je 0x40d5bc
jmp 0x40d59e
mov edx, dword [ebp - 0x48]
add edx, 4
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0
je 0x40d5bc
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040d620
add esp, 0xc
jmp 0x40d595
jmp 0x40d4dc
push 1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00413c81
mov dword [ebp - 4], 0xffffffff
jmp 0x40d5f5
mov eax, dword [ebp - 0x24]
mov dword [0x418c80], eax
mov ecx, dword [0x4199a4]
sub ecx, 1
mov dword [0x4199a4], ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret