Function at 0x410980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e600
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x62acc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x630]
call fcn.00407270
push str.CloudsM.int
push 0x910df9
push str._s_s
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push 0x104
push eax
call fcn.00407c70
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x118]
add esp, 0x14
push eax
call esi
push str.CloudsL.int
push 0x910df9
xor ebx, ebx
cmp eax, 0xffffffff
push str._s_s
lea eax, [ebp - 0x118]
sete bl
push 0x104
push eax
call fcn.00407c70
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call esi
cmp eax, 0xffffffff
lea ecx, [ebx + 1]
cmovne ecx, ebx
test ecx, ecx
je 0x410ced
push 0
push 0x41d8a0
push dword [0x915d9c]
push 0x6b
push dword [0x90fe00]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
xor edx, edx
mov ecx, str.Rescaling_demo_clouds
call fcn.00417380
push str.CloudsH.int
push 0x910df9
push str._s_s
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00407c70
add esp, 0x14
lea edx, [ebp - 0x634]
lea ecx, [ebp - 0x118]
call fcn.00410710
mov esi, eax
test esi, esi
je 0x410ce1
mov ecx, dword [ebp - 0x634]
xor edx, edx
test ecx, ecx
jle 0x410acf
sub ecx, edx
lea eax, [esi + edx]
imul ecx, edx
imul ecx, edx
and ecx, 0x800000ff
jns 0x410ac2
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [eax], cl
inc edx
mov ecx, dword [ebp - 0x634]
cmp edx, ecx
jl 0x410aa7
push 3
push ecx
push esi
lea ecx, [ebp - 0x630]
call fcn.00486110
push esi
test al, al
jne 0x410af0
call fcn.00503e53
add esp, 4
jmp 0x410ce1
call fcn.00503e53
add esp, 4
mov edx, 0x1e
mov ecx, str.Rescaling_demo_clouds
call fcn.00417380
push 0
push 0
push 0x800
push 0x1000
lea ecx, [ebp - 0x630]
call fcn.00489400
test al, al
je 0x410ce1
push 0x50
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
call fcn.00485c00
push 3
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x630]
call fcn.00486840
mov ecx, dword [ebp - 0x634]
xor edx, edx
test ecx, ecx
jle 0x410b9c
mov eax, dword [ebp - 0x638]
sub ecx, edx
imul ecx, edx
imul ecx, edx
and ecx, 0x800000ff
jns 0x410b8e
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [eax + edx], cl
inc edx
mov ecx, dword [ebp - 0x634]
cmp edx, ecx
jl 0x410b70
push str.CloudsM.int
push 0x910df9
push str._s_s
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00407c70
add esp, 0x14
lea eax, [ebp - 0x118]
push 0
push dword [ebp - 0x634]
push dword [ebp - 0x638]
push eax
call fcn.0042e770
add esp, 0x10
lea ecx, [ebp - 0x630]
push dword [ebp - 0x638]
cmp eax, dword [ebp - 0x634]
jne 0x410cdc
call fcn.00488930
mov edx, 0x46
mov ecx, str.Rescaling_demo_clouds
call fcn.00417380
push 0
push 0
push 0x400
push 0x800
lea ecx, [ebp - 0x630]
call fcn.00489400
test al, al
je 0x410ce1
push 3
lea eax, [ebp - 0x634]
mov dword [ebp - 0x638], 0
push eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x634], 0
push eax
lea ecx, [ebp - 0x630]
call fcn.00486840
mov ecx, dword [ebp - 0x634]
xor edx, edx
test ecx, ecx
jle 0x410c90
mov eax, dword [ebp - 0x638]
sub ecx, edx
imul ecx, edx
imul ecx, edx
and ecx, 0x800000ff
jns 0x410c82
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [eax + edx], cl
inc edx
mov ecx, dword [ebp - 0x634]
cmp edx, ecx
jl 0x410c64
push str.CloudsL.int
push 0x910df9
push str._s_s
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00407c70
add esp, 0x14
lea eax, [ebp - 0x118]
push 0
push dword [ebp - 0x634]
push dword [ebp - 0x638]
push eax
call fcn.0042e770
add esp, 0x10
lea ecx, [ebp - 0x630]
push dword [ebp - 0x638]
call fcn.00488930
push dword [0x91e220]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x630], 0x614378
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x120], 0
test eax, eax
je 0x410d27
cmp byte [ebp - 0x11c], 0
jne 0x410d27
push eax
call fcn.00503e53
add esp, 4
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x630], 0x5ab1d8
call fcn.004888c0
lea ecx, [ebp - 0x630]
call fcn.00488800
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret