Function at 0x416448
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x38]
movzx ebx, word [edi + 0x18]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x40]
lea eax, [eax + ecx*2]
add ecx, ebp
mov dword [esp + 0x10], eax
movzx eax, byte [edi + 0xc]
add eax, ebx
mov dword [esp + 0x14], ecx
add eax, edx
mov dword [esp + 0x1c], eax
cmp edx, ebp
jge 0x4164de
mov eax, ebp
mov ecx, edi
sub eax, edx
push esi
push eax
call fcn.0041638c
mov edx, eax
mov dword [esp + 0x28], edx
pop ecx
pop ecx
cmp edx, ebx
jle 0x4164be
pop edi
pop esi
pop ebp
mov ecx, 0x11379
pop ebx
add esp, 0x20
jmp fcn.0045d81d
mov ecx, dword [edi + 0x40]
lea eax, [ebx + ebx]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00461aa0
mov eax, dword [esp + 0x28]
add esp, 0xc
sub ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x4164f3
sub eax, ecx
mov edx, ecx
push esi
push eax
mov ecx, edi
call fcn.0041638c
pop ecx
pop ecx
sub ebx, eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + edx + 5]
movzx eax, byte [eax + edx + 6]
shl ecx, 8
or ecx, eax
dec ecx
movzx eax, cx
xor ecx, ecx
inc eax
add eax, edx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x416687
mov eax, dword [esp + 0x18]
cmp ebp, eax
jge 0x41657a
mov esi, dword [edi + 0x40]
mov ecx, eax
sub ecx, ebp
lea eax, [ebx + ebx]
cmp dword [esp + 0x38], ecx
push eax
cmovl ecx, dword [esp + 0x3c]
push esi
mov dword [esp + 0x24], ecx
lea eax, [esi + ecx*2]
push eax
call fcn.00461aa0
push dword [esp + 0x48]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push dword [esp + 0x2c]
mov ecx, edi
push ebp
push esi
push eax
call fcn.0041626a
add esp, 0x20
test eax, eax
jne 0x416687
add ebx, dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp byte [edi + 0xc], 0
mov edx, ecx
mov dword [esp + 0x1c], edx
jbe 0x41661a
lea ecx, [edi + 0x1c]
mov dword [esp + 0x20], ecx
movzx esi, word [ecx]
sub esi, ebp
add esi, eax
js 0x4165fe
cmp esi, dword [esp + 0x38]
jge 0x4165fe
mov eax, dword [edi + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x2c], ecx
cmp ebx, esi
jle 0x4165c2
mov eax, ebx
sub eax, esi
add eax, eax
push eax
push ecx
lea eax, [ecx + 2]
push eax
call fcn.00461aa0
add esp, 0xc
mov ecx, dword [esp + 0x3c]
add esi, ebp
mov edx, esi
inc ebx
call fcn.00416097
push dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 1
push esi
push dword [esp + 0x38]
mov ecx, edi
push eax
call fcn.0041626a
add esp, 0x14
test eax, eax
jne 0x416687
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
movzx eax, byte [edi + 0xc]
inc edx
add ecx, 2
mov dword [esp + 0x1c], edx
cmp edx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x18]
jl 0x416591
mov eax, dword [edi + 0x40]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push esi
lea ecx, [eax + ebx*2]
mov eax, dword [esp + 0x3c]
sub eax, ebx
push eax
lea eax, [ebx + ebp]
push eax
push ecx
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.0041626a
add esp, 0x14
test eax, eax
jne 0x41668b
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
movzx eax, ax
mov word [edi + 0x18], ax
shr eax, 8
mov byte [edi + 0xc], cl
mov ecx, dword [esp + 0x14]
mov byte [ebx + edx + 3], al
mov al, byte [edi + 0x18]
mov byte [ebx + edx + 4], al
mov eax, ecx
sub eax, edx
sub cl, dl
sar eax, 8
mov byte [ebx + edx + 5], al
xor eax, eax
mov byte [ebx + edx + 6], cl
jmp 0x4166fc
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov edx, ebx
mov dword [esp + 0x28], ebx
test ebx, ebx
jle 0x4166ef
mov ebx, ebp
lea ecx, [ebp*2]
shl ebx, 2
xor ebp, ebp
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0xc]
cmp word [ecx + eax], bp
jne 0x4166d4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push dword [eax + ebx]
push ecx
call dword [ecx + 0x4c]
mov edx, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
mov word [edx + ecx], ax
mov ecx, edx
mov edx, dword [esp + 0x28]
add ecx, 2
add ebx, 4
dec edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
test edx, edx
jg 0x4166ab
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
push edi
push ebx
mov edx, ebp
mov ecx, esi
call fcn.004160a8
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret