Function at 0x418295
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x30], ebx
mov esi, dword [ebx + 4]
lea edx, [ebx + 0xc]
test esi, esi
jne 0x418130
mov eax, dword [edx]
push ebp
call eax
add esp, 4
test al, al
je 0x41847c
mov esi, dword [ebx + 4]
lea edx, [ebx + 0xc]
mov eax, ebx
mov eax, dword [eax]
movzx ecx, byte [eax]
lea edi, [eax + 1]
shl ecx, 8
mov dword [esp + 0x1c], ecx
sub esi, 1
jne 0x41815f
mov eax, dword [edx]
push ebp
call eax
add esp, 4
test al, al
je 0x41847c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
movzx eax, byte [edi]
sub ecx, 2
add ecx, eax
dec esi
inc edi
test ecx, ecx
jle 0x418456
dec ecx
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x418190
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x41847c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov eax, dword [ebp]
dec esi
movzx ecx, byte [edi]
inc edi
mov edx, ecx
mov dword [esp + 0x2c], edi
and ecx, 0xf
shr edx, 4
mov dword [eax + 0x14], 0x53
mov eax, dword [ebp]
push 1
push ebp
mov dword [esp + 0x2c], edx
mov dword [eax + 0x18], ecx
mov eax, dword [ebp]
mov dword [esp + 0x28], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [esp + 0x28]
add esp, 8
cmp ecx, 4
jb 0x4181f5
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0x20
mov eax, dword [ebp]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp]
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x24]
add esp, 4
lea ecx, [ecx + 0x24]
lea eax, [ecx*4]
mov ecx, dword [eax + ebp]
add eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
test ecx, ecx
jne 0x418223
mov ecx, ebp
call fcn.004166d0
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [eax], ecx
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x1c]
je 0x41824a
cmp eax, 0x80
jge 0x41823f
mov edx, eax
sar edx, 1
mov dword [esp + 0x20], edx
jmp 0x418259
mov edx, 0x40
mov dword [esp + 0x20], edx
jmp 0x41827f
cmp eax, 0x40
jge 0x4182f5
mov edx, eax
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x4948b0]
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
movups xmmword [ecx + 0x20], xmm0
movups xmmword [ecx + 0x30], xmm0
movups xmmword [ecx + 0x40], xmm0
movups xmmword [ecx + 0x50], xmm0
movups xmmword [ecx + 0x60], xmm0
movups xmmword [ecx + 0x70], xmm0
lea eax, [edx - 4]
cmp eax, 0x2d
ja case.0x41828e.5
movzx eax, byte [eax + 0x4184a4]
jmp dword [eax*4 + 0x418488]
xor eax, eax
mov dword [esp + 0x18], 0x486e60
mov dword [esp + 0x14], eax
jmp 0x418314
xor eax, eax
mov dword [esp + 0x18], 0x486ae0
mov dword [esp + 0x14], eax
jmp 0x418314
xor eax, eax
mov dword [esp + 0x18], 0x4869b8
mov dword [esp + 0x14], eax
jmp 0x418314
xor eax, eax
mov dword [esp + 0x18], 0x486a38
mov dword [esp + 0x14], eax
jmp 0x418314
xor eax, eax
mov dword [esp + 0x18], 0x486b48
mov dword [esp + 0x14], eax
jmp 0x418314
xor eax, eax
mov dword [esp + 0x18], 0x486d58
mov dword [esp + 0x14], eax
jmp 0x418314
mov edx, 0x40
mov dword [esp + 0x20], edx
xor eax, eax
mov dword [esp + 0x18], 0x486c18
mov dword [esp + 0x14], eax
test edx, edx
jle 0x4183c3
cmp dword [esp + 0x24], 0
je 0x418372
test esi, esi
jne 0x418335
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x41847c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov al, byte [edi]
inc edi
mov byte [esp + 0x13], al
sub esi, 1
jne 0x41835b
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x41847c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov al, byte [esp + 0x13]
movzx ecx, al
dec esi
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edi]
add cx, ax
movzx eax, cx
jmp 0x418390
test esi, esi
jne 0x41838c
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x41847c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
movzx eax, byte [edi]
dec esi
mov edx, dword [esp + 0x14]
inc edi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov eax, dword [eax + edx*4]
inc edx
mov dword [esp + 0x14], edx
mov word [ecx + eax*2], bx
mov ebx, dword [esp + 0x30]
cmp edx, dword [esp + 0x20]
jl 0x418314
mov eax, dword [ebp]
cmp dword [eax + 0x68], 2
jl 0x418436
lea ebx, [ecx + 4]
mov edi, 8
mov ecx, dword [ebp]
movzx eax, word [ebx - 4]
push 2
push ebp
mov dword [ecx + 0x18], eax
movzx eax, word [ebx - 2]
mov dword [ecx + 0x1c], eax
movzx eax, word [ebx]
mov dword [ecx + 0x20], eax
movzx eax, word [ebx + 2]
mov dword [ecx + 0x24], eax
movzx eax, word [ebx + 4]
mov dword [ecx + 0x28], eax
movzx eax, word [ebx + 6]
mov dword [ecx + 0x2c], eax
movzx eax, word [ebx + 8]
mov dword [ecx + 0x30], eax
movzx eax, word [ebx + 0xa]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp]
mov dword [eax + 0x14], 0x5f
mov eax, dword [ebp]
mov eax, dword [eax + 4]
call eax
add esp, 8
lea ebx, [ebx + 0x10]
sub edi, 1
jne 0x4183d4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x20]
mov eax, ecx
sub ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0
cmove ecx, eax
test ecx, ecx
jg 0x418171
test ecx, ecx
je 0x41846d
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0xc
mov eax, dword [ebp]
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebx], edi
mov al, 1
pop edi
mov dword [ebx + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret