Function at 0x416fc0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9335
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5363c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x29]
call fcn.00404d10
mov ecx, dword [esi + 0x6d4]
push 0x3ea
push dword [esi + 0x734]
call sym.CAD.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::KillTimer_class_DuiLib::CControlUI___unsigned_int_
mov ecx, dword [esi + 0x6d4]
push 0x3e9
push dword [esi + 0x734]
call sym.CAD.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::KillTimer_class_DuiLib::CControlUI___unsigned_int_
mov ecx, dword [esi + 0x734]
test ecx, ecx
je 0x417263
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
lea eax, [ebp - 0x44]
push eax
call fcn.004059f0
mov ecx, eax
call fcn.00407a20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x417057
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00412760
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x41709a
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417090
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41727e
push ecx
push edx
call fcn.004bb95e
add esp, 8
lea eax, [ebp - 0x44]
push eax
call fcn.004059f0
mov ecx, eax
call fcn.00407a20
cmp dword [eax + 0x14], 0x10
jb 0x4170b2
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [ebp - 0x30]
test eax, eax
sete bl
cmp ecx, 0x10
jb 0x4170f2
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4170e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417283
push ecx
push edx
call fcn.004bb95e
add esp, 8
test bl, bl
je 0x417121
lea eax, [ebp - 0x44]
push eax
call fcn.004059f0
mov ecx, eax
call fcn.00407a20
cmp dword [eax + 0x14], 0x10
jb 0x41710e
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea ecx, [ebp - 0x44]
call fcn.00403210
lea eax, [ebp - 0x28]
push eax
call fcn.004059f0
mov ecx, eax
call fcn.00407a20
push 0xf
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x29]
call fcn.00405090
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 2
jb 0x417156
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402420
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x41719a
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417190
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417288
push ecx
push edx
call fcn.004bb95e
add esp, 8
push 4
push str..bmp
lea ecx, [ebp - 0x28]
call fcn.00402420
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x788]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x4171c2
mov eax, dword [eax]
push 0x6e
push ecx
push eax
call fcn.004b74a0
add esp, 0xc
test eax, eax
jne 0x41720e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00401950
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x4171f6
mov eax, dword [eax]
mov ecx, dword [esi + 0x734]
push eax
call sym.CAD.exe_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004031b0
mov ecx, dword [esi + 0x6d4]
push 0x3e8
push 0x3e9
push dword [esi + 0x734]
mov dword [esi + 0x7ac], 0x12c
call sym.CAD.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetTimer_class_DuiLib::CControlUI___unsigned_int__unsigned_int_
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x417263
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417259
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41728d
push ecx
push edx
call fcn.004bb95e
add esp, 8
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.004bb96c
mov esp, ebp
pop ebp
ret
call fcn.004c15cf
call fcn.004c15cf
call fcn.004c15cf
call fcn.004c15cf
int3