Function at 0x418510
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4ba00c]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x50], eax
xor esi, esi
mov eax, dword [ecx + 4]
xor ebx, ebx
push edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], eax
call fcn.00418380
mov edi, eax
mov eax, dword [esp + 0x54]
mov dword [eax], ebx
test edi, edi
js 0x418f7a
mov edx, dword [esp + 0x34]
mov eax, 0x100
cwde
movzx ecx, byte [edi + edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + edx + 1]
add cx, ax
movzx eax, cx
mov dword [esp + 0x10], eax
test ax, ax
jle 0x418a18
cwde
lea esi, [edx + 0xa]
add edx, 0xa
mov byte [esp + 0xf], bl
add esi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
lea ebx, [edi + 0xc]
lea ecx, [edi + eax*2]
mov dword [esp + 0x44], esi
add ecx, edx
lea edx, [eax + eax]
movzx edi, byte [edx + esi - 1]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
add eax, edx
add ecx, eax
mov eax, dword [0x4d3fd8]
add ecx, dword [esp + 0x34]
add ebx, ecx
movzx ecx, byte [edx + esi - 2]
shl ecx, 8
inc ecx
add edi, ecx
mov dword [esp + 0x24], edi
lea ecx, [edx + edi]
test eax, eax
je 0x4185dc
inc dword [eax + 0xa8]
push dword [0x4d3fd0]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call fcn.004030c0
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
je 0x418f7a
xor dl, dl
mov dword [esp + 0x4c], 0
test edi, edi
je 0x418667
mov ecx, dword [esp + 0x10]
movsx eax, cx
lea ecx, [eax*8]
sub ecx, eax
mov al, byte [esp + 0xf]
add ecx, 3
lea ecx, [esi + ecx*4]
nop dword [eax]
mov dword [esp + 0x20], ebx
test dl, dl
jne 0x418657
mov al, byte [ebx]
mov byte [esp + 0xf], al
and al, 8
je 0x418645
mov dl, byte [ebx + 1]
xor ebx, ebx
test al, al
mov al, byte [esp + 0xf]
setne bl
inc ebx
add ebx, dword [esp + 0x20]
jmp 0x418659
dec dl
mov byte [ecx], al
add ecx, 0xe
sub edi, 1
jne 0x418630
mov edi, dword [esp + 0x24]
xor edx, edx
test edi, edi
je 0x4186df
mov eax, dword [esp + 0x10]
movsx ecx, ax
lea eax, [ecx*8]
sub eax, ecx
lea edi, [esi + eax*4]
mov esi, dword [esp + 0x24]
mov cl, byte [edi + 0xc]
and cl, 0x10
test byte [edi + 0xc], 2
mov byte [esp + 0xf], cl
je 0x4186aa
mov al, byte [ebx]
inc ebx
movzx ecx, al
mov eax, ecx
neg eax
cmp byte [esp + 0xf], 0
cmove ecx, eax
add edx, ecx
jmp 0x4186cc
test cl, cl
jne 0x4186cc
movzx ecx, byte [ebx]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [ebx + 1]
add cx, ax
movsx eax, cx
add edx, eax
add ebx, 2
mov word [edi], dx
add edi, 0xe
sub esi, 1
jne 0x418684
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
xor edx, edx
test edi, edi
je 0x418759
mov eax, dword [esp + 0x10]
movsx ecx, ax
lea eax, [ecx*8]
sub eax, ecx
lea edi, [eax*4 + 2]
add edi, esi
mov esi, dword [esp + 0x24]
mov cl, byte [edi + 0xa]
and cl, 0x20
test byte [edi + 0xa], 4
mov byte [esp + 0xf], cl
je 0x418728
mov al, byte [ebx]
inc ebx
movzx ecx, al
mov eax, ecx
neg eax
cmp byte [esp + 0xf], 0
cmove ecx, eax
add edx, ecx
jmp 0x41874a
test cl, cl
jne 0x41874a
movzx ecx, byte [ebx]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [ebx + 1]
add cx, ax
movsx eax, cx
add edx, eax
add ebx, 2
mov word [edi], dx
add edi, 0xe
sub esi, 1
jne 0x418702
mov esi, dword [esp + 0x18]
xor eax, eax
xor edx, edx
xor edi, edi
mov dword [esp + 0x48], edx
xor ecx, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x24], eax
jbe 0x4189db
mov eax, dword [esp + 0x10]
movsx ebx, ax
lea eax, [ebx*8]
sub eax, ebx
lea ebx, [esi + eax*4]
mov dword [esp + 0x20], ebx
nop
mov al, byte [ebx + 0xc]
mov byte [esp + 0xf], al
movzx eax, word [ebx]
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x4c], eax
jne 0x4188b2
test eax, eax
je 0x4187f2
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x50]
push dword [esp + 0x40]
push edi
push ecx
push dword [esp + 0x58]
mov ecx, esi
push dword [esp + 0x38]
call fcn.00418440
mov edx, eax
add esp, 0x20
mov eax, dword [esp + 0x3c]
movzx ecx, byte [esp + 0xf]
not ecx
and ecx, 1
mov dword [esp + 0x40], ecx
je 0x41885b
test byte [ebx + 0x1a], 1
mov edi, dword [esp + 0x14]
movsx ecx, di
mov edi, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
movsx ecx, di
movsx edi, word [ebx + 0x10]
mov dword [esp + 0x48], ecx
lea ecx, [ebx + 0xe]
mov dword [esp + 0x20], ecx
movsx ecx, word [ecx]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x70], edi
jne 0x418850
mov esi, dword [esp + 0x14]
movsx eax, si
mov esi, dword [esp + 0x10]
add ecx, eax
movsx eax, si
mov esi, dword [esp + 0x18]
add edi, eax
sar ecx, 1
sar edi, 1
jmp 0x418869
mov ebx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x3c], eax
jmp 0x418871
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movsx ecx, cx
movsx edi, di
mov dword [esp + 0x70], edi
mov dword [esp + 0x30], ecx
lea eax, [edx*8]
sub eax, edx
inc edx
mov word [esi + eax*2], cx
xor ecx, ecx
mov dword [esi + eax*2 + 4], ecx
mov byte [esi + eax*2 + 0xc], 1
mov word [esi + eax*2 + 2], di
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
inc ecx
shl eax, 8
add eax, ecx
add dword [esp + 0x44], 2
mov dword [esp + 0x4c], eax
jmp 0x4189b9
test byte [esp + 0xf], 1
jne 0x418937
cmp dword [esp + 0x1c], 0
je 0x418910
lea ecx, [edx*8]
sub ecx, edx
inc edx
mov byte [esi + ecx*2 + 0xc], 3
mov esi, dword [esp + 0x14]
movsx eax, si
add eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
sar eax, 1
mov word [esi + ecx*2], ax
mov esi, dword [esp + 0x10]
movsx eax, si
add eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
sar eax, 1
mov word [esi + ecx*2 + 2], ax
mov eax, dword [esp + 0x2c]
mov word [esi + ecx*2 + 4], ax
mov eax, dword [esp + 0x28]
mov word [esi + ecx*2 + 6], ax
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
movsx ecx, di
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
movsx ecx, di
mov edi, dword [esp + 0x70]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 1
jmp 0x4189bd
mov eax, dword [esp + 0x14]
lea ebx, [edx*8]
movzx esi, ax
sub ebx, edx
mov eax, dword [esp + 0x10]
inc edx
movzx edi, ax
xor ecx, ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
test esi, esi
movzx eax, ax
cmove eax, ecx
mov dword [esp + 0x50], edx
movzx edx, ax
test esi, esi
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
movzx eax, ax
cmove eax, ecx
movzx ecx, ax
setne al
add al, 2
mov byte [esi + ebx*2 + 0xc], al
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov word [eax + ebx*2], si
mov esi, eax
mov word [esi + ebx*2 + 2], di
mov word [esi + ebx*2 + 4], dx
mov edx, dword [esp + 0x50]
mov word [esi + ebx*2 + 6], cx
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
inc eax
add ebx, 0xe
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebx
cmp eax, dword [esp + 0x24]
jl 0x4187a0
mov eax, dword [esp + 0x28]
push eax
push dword [esp + 0x30]
push dword [esp + 0x50]
push dword [esp + 0x40]
push edi
push ecx
push dword [esp + 0x58]
mov ecx, esi
push dword [esp + 0x38]
call fcn.00418440
add esp, 0x20
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0045a181
mov esp, ebp
pop ebp
ret
jns 0x4189fe
add edi, 0xa
xor ebx, ebx
add edi, edx
xor esi, esi
mov dword [esp + 0x18], esi
mov al, byte [edi + 2]
xorps xmm3, xmm3
movzx edx, byte [edi + 1]
movaps xmm0, xmmword [0x4afe30]
movss xmm5, dword [0x4afcf8]
movss xmm4, dword [0x4afc94]
mov byte [esp + 0xf], al
mov al, byte [edi + 3]
add edi, 4
mov dword [esp + 0x70], 0
movss dword [esp + 0x1c], xmm3
mov dword [esp + 0x44], edx
mov byte [esp + 0x3b], al
movups xmmword [esp + 0x5c], xmm0
test dl, 2
je 0x418afc
lea ecx, [edi + 1]
mov dword [esp + 0x50], ecx
test dl, 1
je 0x418ad7
movzx ecx, byte [edi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [esp + 0x50]
movzx eax, byte [eax]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm0, eax
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm0, xmm0
add cx, ax
add edi, 4
movsx eax, cx
movss dword [esp + 0x40], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
jmp 0x418b08
movsx eax, byte [edi]
mov edi, ecx
movd xmm0, eax
movsx eax, byte [edi]
inc edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x40], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
jmp 0x418b08
movss xmm0, dword [esp + 0x68]
movss dword [esp + 0x40], xmm0
xorps xmm2, xmm2
test dl, 8
je 0x418b5a
movzx ecx, byte [edi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + 1]
add cx, ax
add edi, 2
movsx eax, cx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
movaps xmm1, xmm0
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x28], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x10], xmm1
movss dword [esp + 0x2c], xmm0
jmp 0x418cbd
test dl, 0x40
je 0x418bca
movzx ecx, byte [edi]
mov edx, 0x100
movsx ecx, cx
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 1]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm1, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm1, xmm1
add cx, ax
add edi, 4
movsx eax, cx
mulss xmm1, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x10], xmm1
mulss xmm0, xmm4
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x28], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x2c], xmm0
jmp 0x418cbd
movaps xmm0, xmm5
movaps xmm1, xmm5
movss dword [esp + 0x28], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x10], xmm1
movss dword [esp + 0x2c], xmm0
test dl, dl
jns 0x418cb1
movzx ecx, byte [edi + 2]
lea esi, [edi + 1]
movsx ecx, cx
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [edi + 3]
mov dl, byte [edi]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 4]
movsx ecx, cx
movd xmm2, eax
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [edi + 5]
cvtdq2ps xmm2, xmm2
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 6]
movsx ecx, cx
mulss xmm2, xmm4
movd xmm0, eax
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [edi + 7]
add edi, 8
cvtdq2ps xmm0, xmm0
add cx, ax
movsx eax, cx
movss dword [esp + 0x30], xmm2
mulss xmm0, xmm4
movzx ecx, dl
movsx ecx, cx
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x14], xmm0
movd xmm0, eax
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [esi]
mov esi, dword [esp + 0x18]
cvtdq2ps xmm0, xmm0
add cx, ax
movsx eax, cx
mulss xmm0, xmm4
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x24], xmm0
mulss xmm1, xmm4
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x10], xmm1
jmp 0x418cd5
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm1
mulss xmm2, xmm2
mulss xmm0, xmm1
addss xmm0, xmm2
cvtps2pd xmm0, xmm0
call fcn.004997c0
movss xmm1, dword [esp + 0x28]
cvtsd2ss xmm0, xmm0
mulss xmm1, xmm1
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, xmm0
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.004997c0
movzx edx, byte [esp + 0xf]
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x48]
cvtsd2ss xmm0, xmm0
push eax
movzx eax, byte [esp + 0x3f]
shl edx, 8
add edx, eax
movss dword [esp + 0x50], xmm0
call fcn.0041a450
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
jle 0x418f22
movss xmm4, dword [esp + 0x24]
xor edx, edx
movss xmm5, dword [esp + 0x10]
mov esi, eax
movss xmm6, dword [esp + 0x40]
movss xmm7, dword [esp + 0x14]
nop dword [eax + eax]
mov ecx, dword [esp + 0x70]
xorps xmm3, xmm3
xorps xmm2, xmm2
movsx eax, word [edx + ecx + 2]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx]
cvtsi2ss xmm2, eax
movaps xmm0, xmm3
mulss xmm3, xmm4
movaps xmm1, xmm2
mulss xmm0, xmm7
mulss xmm2, dword [esp + 0x30]
mulss xmm1, xmm5
addss xmm2, xmm3
xorps xmm3, xmm3
addss xmm1, xmm0
addss xmm2, dword [esp + 0x1c]
addss xmm1, xmm6
mulss xmm2, dword [esp + 0x4c]
mulss xmm1, dword [esp + 0x20]
cvttss2si eax, xmm1
mov word [edx + ecx], ax
cvttss2si eax, xmm2
xorps xmm2, xmm2
mov word [edx + ecx + 2], ax
movsx eax, word [edx + ecx + 6]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx + 4]
cvtsi2ss xmm2, eax
movaps xmm0, xmm3
mulss xmm3, xmm4
movaps xmm1, xmm2
mulss xmm0, xmm7
mulss xmm2, dword [esp + 0x30]
mulss xmm1, xmm5
addss xmm2, xmm3
addss xmm1, xmm0
addss xmm2, dword [esp + 0x1c]
addss xmm1, xmm6
mulss xmm2, dword [esp + 0x4c]
mulss xmm1, dword [esp + 0x20]
cvttss2si eax, xmm1
mov word [edx + ecx + 4], ax
cvttss2si eax, xmm2
mov word [edx + ecx + 6], ax
add edx, 0xe
sub esi, 1
jne 0x418d70
mov eax, dword [0x4d3fd8]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x418e51
inc dword [eax + 0xa8]
mov ecx, dword [esp + 0x34]
push dword [0x4d3fd0]
add ecx, ebx
mov dword [esp + 0x54], ecx
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call fcn.004030c0
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x418f32
test ebx, ebx
jle 0x418ea5
test esi, esi
je 0x418ea5
lea eax, [ebx*8]
sub eax, ebx
add eax, eax
push eax
push esi
push ecx
call fcn.0045f1b0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x34]
lea eax, [edx*8]
sub eax, edx
add eax, eax
push eax
push dword [esp + 0x74]
lea eax, [ebx*8]
sub eax, ebx
lea eax, [ecx + eax*2]
push eax
call fcn.0045f1b0
add esp, 0xc
test esi, esi
je 0x418ef0
mov eax, dword [0x4d3fd8]
test eax, eax
je 0x418ee1
dec dword [eax + 0xa8]
push dword [0x4d3fd0]
push esi
call fcn.004030d0
add esp, 8
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x418f0f
mov eax, dword [0x4d3fd8]
test eax, eax
je 0x418f0f
dec dword [eax + 0xa8]
push dword [0x4d3fd0]
push ecx
call fcn.004030d0
mov ebx, dword [esp + 0x58]
add esp, 8
test byte [esp + 0x44], 0x20
je 0x4189fe
jmp 0x418a27
test esi, esi
je 0x418f54
mov eax, dword [0x4d3fd8]
test eax, eax
je 0x418f45
dec dword [eax + 0xa8]
push dword [0x4d3fd0]
push esi
call fcn.004030d0
add esp, 8
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x418f7a
mov eax, dword [0x4d3fd8]
test eax, eax
je 0x418f6b
dec dword [eax + 0xa8]
push dword [0x4d3fd0]
push ecx
call fcn.004030d0
add esp, 8
mov ecx, dword [esp + 0x74]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a181
mov esp, ebp
pop ebp
ret