Function at 0x407da0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov ecx, dword [ebx]
call fcn.004167c0
mov edi, dword [esp + 0x28]
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov ax, word [edi]
mov cx, word [ebp + 0xa]
mov dx, word [ebp + 8]
and eax, 0x3ff
push ecx
mov ecx, dword [ebx]
mov esi, dword [ebx + eax*4 + 0x4160]
mov eax, dword [esp + 0x34]
mov ecx, dword [ecx + 0x2ff8]
push edx
push eax
call fcn.00411730
mov edx, dword [esp + 0x2c]
mov ecx, 0xffff
and edx, ecx
add eax, edx
cmp word [edi + 2], 0x3ff
mov dword [esp + 0x20], eax
jne 0x407e6a
cmp word [edi + 4], cx
jne 0x407e6a
cmp word [edi + 6], cx
jne 0x407e6a
mov edi, dword [ebx + 0x5100]
mov cx, word [ebp + 8]
and ecx, 0xffff
mov dword [esp + 0x28], 0x10
mov dx, word [edi + 8]
mov ebx, dword [edi]
mov edi, dword [ebp]
add esi, ebx
add eax, edi
and edx, 0xffff
mov edi, esi
mov ebx, eax
sub eax, ecx
sub esi, edx
mov ebp, dword [edi]
mov dword [ebx], ebp
mov ebp, dword [edi + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [edi + 8]
mov dword [ebx + 8], ebp
mov edi, dword [edi + 0xc]
mov dword [ebx + 0xc], edi
mov edi, dword [esp + 0x28]
dec edi
mov dword [esp + 0x28], edi
jne 0x407e37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [ebx + 0x5100]
mov dword [esp + 0x2c], 0x10
mov ecx, dword [eax]
mov dx, word [eax + 8]
add esi, ecx
lea ecx, [ebx + 0xf8]
mov dword [esp + 0x30], ecx
and edx, 0xffff
mov eax, esi
mov edi, ecx
sub ecx, 0x10
sub esi, edx
mov ebp, dword [eax]
mov dword [edi], ebp
mov ebp, dword [eax + 4]
mov dword [edi + 4], ebp
mov ebp, dword [eax + 8]
mov dword [edi + 8], ebp
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x407e90
mov ecx, dword [esp + 0x28]
mov cx, word [ecx + 4]
mov edx, ecx
and edx, 0x3ff
cmp edx, 0x3ff
je 0x407fea
mov eax, dword [ebx + 0x5104]
mov esi, dword [esp + 0x30]
and ecx, 0x3ff
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x10
mov edi, dword [ebx + ecx*4 + 0x4160]
mov cx, word [eax + 8]
mov word [esp + 0x18], cx
mov ecx, dword [eax]
add edi, ecx
mov ecx, edi
sub esi, edi
mov dword [esp + 0x2c], 0x10
mov dl, byte [ecx]
mov eax, dword [ebx + 4]
movzx bp, dl
cmp bp, word [eax + 0x10ea]
je 0x407f27
mov byte [esi + ecx], dl
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x2c], eax
jne 0x407f12
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
sub esi, 0x10
sub edi, ecx
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jne 0x407f06
mov edx, dword [esp + 0x28]
mov cx, word [edx + 6]
mov eax, ecx
and eax, 0x3ff
cmp eax, 0x3ff
je 0x407fea
mov eax, dword [ebx + 0x5104]
mov esi, dword [esp + 0x30]
and ecx, 0x3ff
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x10
mov edi, dword [ebx + ecx*4 + 0x4160]
mov cx, word [eax + 8]
mov word [esp + 0x18], cx
mov ecx, dword [eax]
add edi, ecx
mov ecx, edi
sub esi, edi
mov dword [esp + 0x2c], 0x10
mov dl, byte [ecx]
mov eax, dword [ebx + 4]
movzx bp, dl
cmp bp, word [eax + 0x10ea]
je 0x407fbc
mov byte [esi + ecx], dl
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x2c], eax
jne 0x407fa7
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
and ecx, 0xffff
sub esi, 0x10
sub edi, ecx
dec eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jne 0x407f9b
mov edx, dword [esp + 0x28]
mov ax, word [edx + 2]
mov ecx, eax
and ecx, 0x3ff
test ah, 4
mov ecx, dword [ebx + ecx*4 + 0x4160]
jne 0x40808a
cmp ax, 0x3ff
je 0x4080fe
mov eax, dword [ebx + 0x5100]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], 0x10
mov dx, word [eax + 8]
mov word [esp + 0x18], dx
mov edx, dword [eax]
add ecx, edx
mov edi, ecx
mov ecx, edi
sub esi, edi
mov dword [esp + 0x28], 0x10
mov dl, byte [ecx]
mov eax, dword [ebx + 4]
movzx bp, dl
cmp bp, word [eax + 0x10ea]
je 0x40805a
mov byte [esi + ecx], dl
mov eax, dword [esp + 0x28]
inc ecx
dec eax
mov dword [esp + 0x28], eax
jne 0x408045
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
sub esi, 0x10
sub edi, ecx
dec eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
jne 0x408039
jmp 0x4080fe
mov eax, dword [ebx + 0x5104]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], 0x10
mov dx, word [eax + 8]
mov word [esp + 0x18], dx
mov edx, dword [eax]
add ecx, edx
mov edi, ecx
mov ecx, edi
sub esi, edi
mov dword [esp + 0x28], 0x10
mov dl, byte [ecx]
mov eax, dword [ebx + 4]
movzx bp, dl
cmp bp, word [eax + 0x10ea]
je 0x4080d0
mov byte [esi + ecx], dl
mov eax, dword [esp + 0x28]
inc ecx
dec eax
mov dword [esp + 0x28], eax
jne 0x4080bb
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
sub esi, 0x10
sub edi, ecx
dec eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
jne 0x4080af
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edi, dword [esi]
mov dx, word [esi + 8]
add eax, edi
and edx, 0xffff
mov esi, 0x10
mov edi, ecx
mov ebx, eax
sub eax, edx
sub ecx, 0x10
mov ebp, dword [edi]
dec esi
mov dword [ebx], ebp
mov ebp, dword [edi + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [edi + 8]
mov dword [ebx + 8], ebp
mov edi, dword [edi + 0xc]
mov dword [ebx + 0xc], edi
jne 0x40811d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc