Function at 0x408760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [ebp + 0xc]
push esi
push edi
movsx edi, ax
mov esi, ecx
shr eax, 0x10
movsx edx, ax
mov eax, dword [ebp + 8]
cmp byte [esi + 0xb], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
je 0x40882a
mov ecx, dword [esi + 0x1c]
mov eax, edi
cmp edi, ecx
cmovle eax, ecx
cmovle ecx, edi
mov dword [esi + 0x58], ecx
mov dword [esi + 0x60], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x20]
cmp edx, eax
mov edi, eax
cmovle edi, edx
mov dword [esp + 0x10], edi
mov edi, edx
cmovle edi, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x30]
cmp ecx, eax
jge 0x4087d4
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x30]
cmp dword [esp + 0x10], eax
jge 0x4087e0
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x34]
cmp dword [esp + 0x28], eax
jle 0x4087ec
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x38]
cmp dword [esp + 0x2c], eax
jle 0x4087f8
mov dword [esi + 0x64], eax
lea ecx, [esi + 0x88]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edx
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x40881a
mov dword [eax], edi
mov dword [eax + 4], edx
add dword [ecx + 4], 8
jmp 0x4088bd
lea edx, [esp + 0x30]
push edx
push eax
call fcn.004093c0
jmp 0x4088bd
cmp byte [esi + 8], 0
je 0x4088e8
cmp eax, 1
jne 0x408861
mov ecx, dword [esi + 0x14]
mov eax, edi
cmp edi, ecx
cmovle eax, ecx
cmovle ecx, edi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x18]
cmp edx, eax
jle 0x40885b
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], edx
jmp 0x408861
mov dword [esi + 0x30], edx
mov dword [esi + 0x38], eax
cmp byte [esi + 9], 0
je 0x4088bd
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x50]
cmp eax, ecx
je 0x4088bd
movups xmm1, xmmword [eax]
movd edx, xmm1
cmp edi, edx
jle 0x4088b0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edx, xmm0
cmp edi, edx
jge 0x4088b0
movaps xmm0, xmm1
psrldq xmm0, 4
movd edx, xmm0
cmp dword [esp + 0x34], edx
jle 0x4088b0
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd edx, xmm0
cmp dword [esp + 0x34], edx
jl 0x4088b9
add eax, 0x10
cmp eax, ecx
jne 0x408871
jmp 0x4088bd
movups xmmword [esi + 0x2c], xmm1
cmp dword [ebp + 8], 1
lea eax, [esi + 8]
je 0x4088cb
cmp byte [eax], 0
je 0x4088de
cmp dword [esi + 0x6b0], 0x3ed
je 0x4088de
mov ecx, esi
call fcn.00406b00
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push edx
push edi
call fcn.004069a0
call fcn.004068a0
cmp dword [ebp + 8], 1
lea eax, [esi + 8]
jne 0x4088c6
mov ecx, dword [esp + 0x34]
xorps xmm0, xmm0
sub edi, dword [esi + 0x6fc]
sub ecx, dword [esi + 0x700]
mov eax, dword [esi + 0x6f4]
movaps xmmword [esp + 0x30], xmm0
test eax, eax
je 0x4088de
cmp eax, 1
jne 0x4089f3
mov eax, dword [esi + 0x6e0]
mov edx, dword [esi + 0x6ec]
add eax, edi
add edi, dword [esi + 0x6e8]
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x6e4]
add eax, ecx
mov dword [esp + 0x38], edi
mov ecx, dword [esi + 0x6d0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
cmp eax, ecx
jge 0x408982
mov eax, ecx
mov dword [esp + 0x30], ecx
sub eax, dword [esp + 0x10]
add edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], edi
cmp eax, ecx
cmovge ecx, eax
mov eax, dword [esi + 0x6d8]
cmp edi, eax
jle 0x4089a1
sub eax, edi
mov edi, dword [esi + 0x6d8]
add eax, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 0x6d4]
mov edi, dword [esp + 0x2c]
cmp edi, ecx
jge 0x4089bf
mov eax, ecx
mov dword [esp + 0x34], ecx
sub eax, edi
add edx, eax
cmp edi, ecx
mov dword [esp + 0x3c], edx
cmovge ecx, edi
mov edi, dword [esi + 0x6dc]
cmp edx, edi
jle 0x4089da
mov eax, edi
mov dword [esp + 0x3c], edi
sub eax, edx
add eax, ecx
mov dword [esp + 0x34], eax
movups xmm0, xmmword [esp + 0x30]
mov ecx, esi
mov byte [esi + 0xa], 0
movups xmmword [esi + 0x2c], xmm0
call fcn.004055d0
jmp 0x4088cb
cmp eax, 2
jne 0x408a3b
add ecx, dword [esi + 0x6e4]
mov edx, dword [esi + 0x6d4]
cmp ecx, edx
mov eax, dword [esi + 0x6e0]
mov edi, dword [esi + 0x6e8]
cmovge edx, ecx
mov ecx, dword [esi + 0x6ec]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x6dc]
cmp edx, eax
mov dword [esp + 0x3c], ecx
cmovle eax, edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
jmp 0x408cf4
cmp eax, 3
jne 0x408a83
add ecx, dword [esi + 0x6ec]
mov edx, dword [esi + 0x6dc]
cmp ecx, edx
mov edi, dword [esi + 0x6e0]
mov eax, dword [esi + 0x6e4]
cmovle edx, ecx
mov ecx, dword [esi + 0x6d4]
cmp edx, ecx
mov dword [esp + 0x30], edi
mov edi, dword [esi + 0x6e8]
cmovge ecx, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
jmp 0x408cf4
cmp eax, 4
jne 0x408add
mov ecx, dword [esi + 0x6e0]
mov edx, dword [esi + 0x6d0]
add ecx, edi
mov edi, dword [esi + 0x6e8]
cmp ecx, edx
mov eax, dword [esi + 0x6e4]
cmovge edx, ecx
mov dword [esp + 0x38], edi
cmp edx, dword [esi + 0x6d8]
mov edi, dword [esi + 0x6d8]
mov ecx, dword [esi + 0x6ec]
cmovle edi, edx
mov edx, edi
mov dword [esp + 0x10], edi
mov edi, dword [esi + 0x6e8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
jmp 0x408cfa
cmp eax, 5
jne 0x408b27
mov ecx, dword [esi + 0x6e8]
mov edx, dword [esi + 0x6d8]
add ecx, edi
mov edi, dword [esi + 0x6d0]
cmp ecx, edx
mov eax, dword [esi + 0x6e0]
cmovle edx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x6e4]
cmp edx, edi
mov ecx, dword [esi + 0x6ec]
cmovge edi, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edi
jmp 0x408cf4
cmp eax, 6
jne 0x408b9d
add ecx, dword [esi + 0x6e4]
mov edx, dword [esi + 0x6d4]
cmp ecx, edx
cmovge edx, ecx
mov ecx, dword [esi + 0x6dc]
cmp edx, ecx
cmovle ecx, edx
mov edx, dword [esi + 0x6d0]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x6ec]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x6e0]
add ecx, edi
mov dword [esp + 0x34], eax
mov edi, dword [esi + 0x6e8]
cmp ecx, edx
mov dword [esp + 0x38], edi
cmovge edx, ecx
mov ecx, dword [esi + 0x6d8]
cmp edx, ecx
cmovle ecx, edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x6ec]
jmp 0x408cfa
cmp eax, 8
jne 0x408c13
add ecx, dword [esi + 0x6ec]
mov edx, dword [esi + 0x6dc]
cmp ecx, edx
mov eax, dword [esi + 0x6e4]
cmovle edx, ecx
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x6d4]
cmp edx, ecx
mov eax, dword [esi + 0x6d8]
cmovge ecx, edx
mov edx, dword [esi + 0x6d0]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x6e0]
add ecx, edi
mov edi, dword [esi + 0x6e8]
cmp ecx, edx
mov dword [esp + 0x38], edi
cmovge edx, ecx
mov ecx, dword [esp + 0x10]
cmp edx, eax
mov dword [esp + 0x3c], ecx
cmovle eax, edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x6e4]
jmp 0x408cfa
cmp eax, 7
jne 0x408c7e
add ecx, dword [esi + 0x6e4]
mov edx, dword [esi + 0x6d4]
cmp ecx, edx
mov eax, dword [esi + 0x6e0]
cmovge edx, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 0x6dc]
cmp edx, ecx
cmovle ecx, edx
mov edx, dword [esi + 0x6d8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x6ec]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x6e8]
add ecx, edi
mov dword [esp + 0x34], eax
mov edi, dword [esi + 0x6d0]
cmp ecx, edx
cmovle edx, ecx
mov ecx, dword [esi + 0x6ec]
cmp edx, edi
cmovge edi, edx
mov dword [esp + 0x38], edi
jmp 0x408cf4
cmp eax, 9
jne 0x408d12
add ecx, dword [esi + 0x6ec]
mov edx, dword [esi + 0x6dc]
cmp ecx, edx
mov eax, dword [esi + 0x6e4]
cmovle edx, ecx
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x6d4]
cmp edx, ecx
mov eax, dword [esi + 0x6e0]
cmovge ecx, edx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x6d0]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x6e8]
add ecx, edi
mov edi, dword [esi + 0x6d8]
cmp ecx, edi
cmovle edi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edi
cmp edi, eax
jge 0x408cee
mov edi, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edi
mov eax, dword [esi + 0x6e4]
mov edx, dword [esi + 0x6e0]
cmp edi, edx
jge 0x408d06
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], edi
cmp ecx, eax
jge 0x408d12
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
movups xmm0, xmmword [esp + 0x30]
lea edi, [esi + 0xc4]
mov byte [esi + 0xa], 1
movups xmmword [esi + 0x2c], xmm0
mov eax, dword [edi + 4]
test eax, eax
jne 0x408d4b
mov eax, dword [0x429abc]
push edi
push 0x403e90
push dword [eax + 4]
push 0x68
push dword [0x429688]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [edi + 4], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi + 8], 0
jmp 0x4088cb