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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5207ea
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x13c]
test edi, edi
je 0x413250
cmp edi, 9
jne 0x4131f3
mov eax, dword [esi]
lea ebx, [esi + 0x80]
mov ecx, ebx
mov dword [ebp - 0x1cc], eax
lea edx, [eax + 0xa88]
call fcn.00415990
test al, al
je 0x4131f3
mov al, byte [ebp - 0x118]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x1d0], esp
mov dword [ecx], vtable.std::_Func_base_void__struct_stOrderDetail_const___bool__int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [ecx], 0x53d474
mov dword [ecx + 8], 0x413050
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], al
mov al, byte [ebp - 0x117]
mov byte [ecx + 0x11], al
mov al, byte [ebp - 0x116]
mov byte [ecx + 0x12], al
mov al, byte [ebp - 0x115]
mov byte [ecx + 0x13], al
mov eax, dword [ebp - 0x1cc]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x24], ecx
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push 0x53c598
call fcn.00407070
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00418980
jmp 0x4137ad
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004fb530
push edi
lea eax, [ebp - 0x90]
push 0x53d330
push eax
call fcn.00415740
lea eax, [esi + 0x140]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x413229
mov eax, dword [eax]
mov ecx, dword [esi]
mov edx, 0x53d33c
push 0
push 5
push 0
mov ecx, dword [ecx + 4]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.0040bc90
add esp, 0x18
jmp 0x4137ad
cmp dword [esi + 8], 2
lea edi, [esi + 8]
je 0x4132ad
mov eax, dword [esi]
cmp dword [eax + 0xa08], 0
je 0x4137ad
cmp dword [esi + 0x4c], 0x10
lea edx, [esi + 0x38]
jb 0x413273
mov edx, dword [edx]
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.004279c0
mov ecx, dword [esi]
add esp, 4
add ecx, 0xa48
push eax
call fcn.004137d0
lea ecx, [ebp - 0x1b0]
call fcn.0040e100
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xa08]
call fcn.00449200
jmp 0x4137ad
push 0x53d0e4
lea ecx, [ebp - 0x140]
call fcn.00403170
push 0x53d0e8
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 1
call fcn.00403170
push ecx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00424810
mov eax, dword [ebp - 0x114]
cmp eax, 8
jb 0x413306
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.00402f10
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x128], ax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], 0
cmp eax, 8
jb 0x413348
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.00402f10
mov ecx, dword [esi]
push edi
add ecx, 0xad0
call fcn.00413810
mov eax, dword [esi]
cmp dword [eax + 0xa1c], 0
je 0x4133a4
lea edx, [esi + 0x50]
lea ecx, [ebp - 0x140]
call fcn.004310a0
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x413380
mov edx, dword [edx]
mov eax, dword [esi]
push 0
push 0
push edx
mov ecx, dword [eax + 0xa1c]
mov eax, dword [ecx]
call dword [eax + 0x34]
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 0xffffffff
call fcn.00402450
mov ecx, dword [esi]
mov edx, 0x53d39c
push 0x53d344
push 0xa
push 1
mov ecx, dword [ecx + 4]
push 0x53d368
push 0x53d14c
push 0x53d394
call fcn.0040bc90
add esp, 0x18
cmp eax, 2
je 0x4137ad
mov edi, dword [0x56e848]
mov eax, dword [edi + 8]
test eax, eax
je 0x413400
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
test eax, eax
je 0x413400
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0xa18]
test ecx, ecx
je 0x413416
mov eax, dword [ecx]
push 1
call dword [eax + 0x108]
mov edx, dword [0x56e850]
lea ecx, [ebp - 0x1c8]
lea edx, [edx + 0x6c]
call fcn.004310a0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x188]
mov edx, dword [esi]
add edx, 0xaa0
call fcn.004310a0
push str.installPath
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00403170
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x158]
mov edx, dword [esi]
add edx, 0xaa0
call fcn.004310a0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x41347b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x140]
call fcn.00403170
push ecx
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.004249f0
mov ecx, dword [esi]
push eax
add ecx, 0xc60
call fcn.0040c240
lea ecx, [ebp - 0x170]
call fcn.00402450
lea ecx, [ebp - 0x140]
call fcn.00402450
lea ecx, [ebp - 0x158]
call fcn.00402450
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00402450
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [eax + 0xc70], 0
je 0x41350d
add eax, 0xc60
cmp dword [eax + 0x14], 8
jb 0x413502
mov eax, dword [eax]
push eax
call edi
test eax, eax
jne 0x413616
lea ecx, [ebp - 0x1ac]
call fcn.0041c510
mov byte [ebp - 4], 8
cmp byte [ebp - 0x18c], 0
je 0x41356c
sub esp, 0x18
mov eax, esp
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x413540
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x158]
call fcn.0042f6d0
mov ecx, dword [esi]
add esp, 0x18
add ecx, 0xc60
push eax
call fcn.0040c240
lea ecx, [ebp - 0x158]
jmp 0x413602
push str.Program_Files__x86__
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040ccf0
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x140]
call fcn.0040ce70
push 0x53ca00
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0xa
push eax
call fcn.004151f0
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0xb
push ecx
mov edx, eax
lea ecx, [ebp - 0x158]
call fcn.0040ce70
mov ecx, dword [esi]
add esp, 0x20
add ecx, 0xc60
push eax
call fcn.0040c240
lea ecx, [ebp - 0x158]
call fcn.00402450
lea ecx, [ebp - 0x170]
call fcn.00402450
lea ecx, [ebp - 0x140]
call fcn.00402450
lea ecx, [ebp - 0x128]
call fcn.00402450
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 4
call fcn.00402450
mov eax, dword [esi]
add eax, 0xc60
cmp dword [eax + 0x14], 8
jb 0x413625
mov eax, dword [eax]
push eax
call edi
test eax, eax
jne 0x413719
mov eax, dword [esi]
add eax, 0xc60
cmp dword [eax + 0x14], 8
jb 0x41363f
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x413719
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004fb530
push edi
lea eax, [ebp - 0x110]
push 0x53d3d0
push eax
call fcn.00415720
mov ecx, dword [esi]
lea eax, [ebp - 0x110]
push 0
push 8
push 0
mov ecx, dword [ecx + 4]
mov edx, 0x53d404
push eax
push 0x53d14c
push 0
call fcn.0040bc90
add esp, 0x30
lea ecx, [ebp - 0x128]
push 0x53cb08
call fcn.00403170
push str._self
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0xc
call fcn.00403170
xor edx, edx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x158]
call fcn.0042f600
push ecx
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x140]
mov ecx, eax
call fcn.00426320
add esp, 8
lea ecx, [ebp - 0x158]
call fcn.00402450
lea ecx, [ebp - 0x140]
call fcn.00402450
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00402450
mov ecx, dword [esi]
push 1
mov eax, dword [ecx]
call dword [eax]
push str.installPath
lea ecx, [ebp - 0x170]
call fcn.00403170
mov eax, dword [esi]
add eax, 0xc60
push eax
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00424b20
lea ecx, [ebp - 0x170]
call fcn.00402450
mov ecx, dword [esi]
mov edx, dword [ecx + 0xa40]
test edx, edx
je 0x413797
add ecx, 0xc60
cmp dword [ecx + 0x14], 8
jb 0x413769
mov ecx, dword [ecx]
mov eax, dword [edx]
push 0
push 0
push ecx
mov ecx, edx
call dword [eax + 0x34]
mov ecx, dword [esi]
cmp dword [ecx + 0xc74], 8
lea edx, [ecx + 0xc60]
jb 0x413788
mov edx, dword [edx]
mov ecx, dword [ecx + 0xa40]
push edx
mov eax, dword [ecx]
call dword [eax + 0xb8]
lea ecx, [ebp - 0x188]
call fcn.00402450
lea ecx, [ebp - 0x1c8]
call fcn.00402450
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret