Function at 0x418764
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x24], eax
mov edi, edx
mov dword [ebp - 0x20], ecx
test edx, edx
jne 0x41878c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov edx, 0x44
mov eax, dword [ebp - 0x24]
call fcn.00409b4c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x418780
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi]
mov eax, dword [ebp - 0x24]
call fcn.0041865c
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4188a4
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.00418648
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0041865c
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x10], eax
mov edx, dword [edi + 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.00418648
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], eax
mov edx, dword [edi + 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0041865c
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov al, byte [edi + 4]
mov byte [edx + 4], al
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.00418764
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
mov edx, dword [edi + 0x28]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.00418648
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x28], eax
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.00418648
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov ax, word [edi + 6]
and eax, 0xfffffff7
mov word [edx + 6], ax
mov dword [edx + 0x24], 0
mov dword [edx + 0x38], 0xffffffff
mov dword [edx + 0x3c], 0xffffffff
mov dword [edx + 0x40], 0xffffffff
mov eax, dword [ebp - 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
test ax, ax
jle 0x4189c4
cwde
lea eax, [eax*8 - 8]
lea edx, [eax*8]
sub edx, eax
add edx, 0x40
mov eax, dword [ebp - 0x24]
call fcn.00409b4c
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4187c7
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov edx, dword [ebp - 0x30]
mov word [edx + 2], ax
mov word [edx], ax
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
jle 0x4187c7
mov ebx, eax
mov esi, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x24]
nop
mov edx, dword [ebx + 8]
mov eax, edi
call fcn.00412ba4
mov dword [esi + 8], eax
mov edx, dword [ebx + 0xc]
mov eax, edi
call fcn.00412ba4
mov dword [esi + 0xc], eax
mov edx, dword [ebx + 0x10]
mov eax, edi
call fcn.00412ba4
mov dword [esi + 0x10], eax
mov al, byte [ebx + 0x1d]
mov byte [esi + 0x1d], al
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x20], eax
mov al, byte [ebx + 0x1c]
mov byte [esi + 0x1c], al
mov edx, dword [ebx + 0x38]
mov eax, edi
call fcn.00412ba4
mov dword [esi + 0x38], eax
mov al, byte [ebx + 0x1e]
mov byte [esi + 0x1e], al
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
test eax, eax
je 0x418968
inc word [eax + 0x20]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, edi
call fcn.00418764
mov dword [esi + 0x18], eax
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, edi
call fcn.00418648
mov dword [esi + 0x24], eax
mov edx, dword [ebx + 0x28]
mov eax, edi
call fcn.00412bf8
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
inc dword [ebp - 0x28]
add ebx, 0x38
add esi, 0x38
mov edx, dword [ebp - 0x2c]
movsx eax, word [edx]
cmp dword [ebp - 0x28], eax
jl 0x418908
mov edi, dword [ebp - 0x34]
jmp 0x4187c7
mov edx, 0x40
jmp 0x4188c6