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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f0b0
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x62bcc0]
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.00407220
push str.CloudsM.int
push 0x911ff9
push str._s_s
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push 0x104
push eax
call fcn.00407c20
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x118]
add esp, 0x14
push eax
call esi
push str.CloudsL.int
push 0x911ff9
xor ebx, ebx
cmp eax, 0xffffffff
push str._s_s
lea eax, [ebp - 0x118]
sete bl
push 0x104
push eax
call fcn.00407c20
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 0x410f9d
push 0
push 0x41db90
push dword [0x91709c]
push 0x6b
push dword [0x911000]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
xor edx, edx
mov ecx, str.Rescaling_demo_clouds
call fcn.00417650
push str.CloudsH.int
push 0x911ff9
push str._s_s
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00407c20
add esp, 0x14
lea edx, [ebp - 0x634]
lea ecx, [ebp - 0x118]
call fcn.004109e0
mov esi, eax
test esi, esi
je 0x410f91
mov ecx, dword [ebp - 0x634]
xor edx, edx
test ecx, ecx
jle 0x410d7f
sub ecx, edx
lea eax, [esi + edx]
imul ecx, edx
imul ecx, edx
and ecx, 0x800000ff
jns 0x410d72
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [eax], cl
inc edx
mov ecx, dword [ebp - 0x634]
cmp edx, ecx
jl 0x410d57
push 3
push ecx
push esi
lea ecx, [ebp - 0x630]
call fcn.00486a70
push esi
test al, al
jne 0x410da0
call fcn.00504903
add esp, 4
jmp 0x410f91
call fcn.00504903
add esp, 4
mov edx, 0x1e
mov ecx, str.Rescaling_demo_clouds
call fcn.00417650
push 0
push 0
push 0x800
push 0x1000
lea ecx, [ebp - 0x630]
call fcn.00489d60
test al, al
je 0x410f91
push 0x50
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
call fcn.00486560
push 3
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x630]
call fcn.004871a0
mov ecx, dword [ebp - 0x634]
xor edx, edx
test ecx, ecx
jle 0x410e4c
mov eax, dword [ebp - 0x638]
sub ecx, edx
imul ecx, edx
imul ecx, edx
and ecx, 0x800000ff
jns 0x410e3e
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [eax + edx], cl
inc edx
mov ecx, dword [ebp - 0x634]
cmp edx, ecx
jl 0x410e20
push str.CloudsM.int
push 0x911ff9
push str._s_s
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00407c20
add esp, 0x14
lea eax, [ebp - 0x118]
push 0
push dword [ebp - 0x634]
push dword [ebp - 0x638]
push eax
call fcn.0042e9b0
add esp, 0x10
lea ecx, [ebp - 0x630]
push dword [ebp - 0x638]
cmp eax, dword [ebp - 0x634]
jne 0x410f8c
call fcn.00489290
mov edx, 0x46
mov ecx, str.Rescaling_demo_clouds
call fcn.00417650
push 0
push 0
push 0x400
push 0x800
lea ecx, [ebp - 0x630]
call fcn.00489d60
test al, al
je 0x410f91
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.004871a0
mov ecx, dword [ebp - 0x634]
xor edx, edx
test ecx, ecx
jle 0x410f40
mov eax, dword [ebp - 0x638]
sub ecx, edx
imul ecx, edx
imul ecx, edx
and ecx, 0x800000ff
jns 0x410f32
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [eax + edx], cl
inc edx
mov ecx, dword [ebp - 0x634]
cmp edx, ecx
jl 0x410f14
push str.CloudsL.int
push 0x911ff9
push str._s_s
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00407c20
add esp, 0x14
lea eax, [ebp - 0x118]
push 0
push dword [ebp - 0x634]
push dword [ebp - 0x638]
push eax
call fcn.0042e9b0
add esp, 0x10
lea ecx, [ebp - 0x630]
push dword [ebp - 0x638]
call fcn.00489290
push dword [0x91f520]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x128]
mov dword [ebp - method.CImage.virtual_0], vtable.CImage.0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x120], 0
test eax, eax
je 0x410fd7
cmp byte [ebp - 0x11c], 0
jne 0x410fd7
push eax
call fcn.00504903
add esp, 4
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x630]
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call fcn.00489220
lea ecx, [ebp - 0x630]
call fcn.00489160
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.004ff23c
mov esp, ebp
pop ebp
ret