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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52058a
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 0x413170
cmp edi, 9
jne 0x413113
mov eax, dword [esi]
lea ebx, [esi + 0x80]
mov ecx, ebx
mov dword [ebp - 0x1cc], eax
lea edx, [eax + 0xa88]
call fcn.004157a0
test al, al
je 0x413113
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], 0x53d440
mov dword [ecx + 8], 0x412f70
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 0x53c5a8
call fcn.00407070
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004186d0
jmp 0x4136cd
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004fb2d0
push edi
lea eax, [ebp - 0x90]
push 0x53d318
push eax
call fcn.00415550
lea eax, [esi + 0x140]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x413149
mov eax, dword [eax]
mov ecx, dword [esi]
mov edx, 0x53d324
push 0
push 5
push 0
mov ecx, dword [ecx + 4]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.0040bbf0
add esp, 0x18
jmp 0x4136cd
cmp dword [esi + 8], 2
lea edi, [esi + 8]
je 0x4131cd
mov eax, dword [esi]
cmp dword [eax + 0xa0c], 0
je 0x4136cd
cmp dword [esi + 0x4c], 0x10
lea edx, [esi + 0x38]
jb 0x413193
mov edx, dword [edx]
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.00427720
mov ecx, dword [esi]
add esp, 4
add ecx, 0xa48
push eax
call fcn.004136f0
lea ecx, [ebp - 0x1b0]
call fcn.0040e060
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xa0c]
call fcn.00448f20
jmp 0x4136cd
push 0x53d0cc
lea ecx, [ebp - 0x140]
call fcn.00403170
push 0x53d0d0
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.00424570
mov eax, dword [ebp - 0x114]
cmp eax, 8
jb 0x413226
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 0x413268
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.00413730
mov eax, dword [esi]
cmp dword [eax + 0xa1c], 0
je 0x4132c4
lea edx, [esi + 0x50]
lea ecx, [ebp - 0x140]
call fcn.00430df0
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x4132a0
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, 0x53d384
push 0x53d32c
push 0xa
push 1
mov ecx, dword [ecx + 4]
push 0x53d350
push 0x53d134
push 0x53d37c
call fcn.0040bbf0
add esp, 0x18
cmp eax, 2
je 0x4136cd
mov edi, dword [0x56e768]
mov eax, dword [edi + 8]
test eax, eax
je 0x413320
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov eax, dword [edi + 8]
test eax, eax
je 0x413320
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 0x413336
mov eax, dword [ecx]
push 1
call dword [eax + 0x108]
mov edx, dword [0x56e770]
lea ecx, [ebp - 0x1c8]
lea edx, [edx + 0x6c]
call fcn.00430df0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x188]
mov edx, dword [esi]
add edx, 0xaa0
call fcn.00430df0
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.00430df0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x41339b
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.00424750
mov ecx, dword [esi]
push eax
add ecx, 0xc60
call fcn.0040c1a0
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 0x41342d
add eax, 0xc60
cmp dword [eax + 0x14], 8
jb 0x413422
mov eax, dword [eax]
push eax
call edi
test eax, eax
jne 0x413536
lea ecx, [ebp - 0x1ac]
call fcn.0041c270
mov byte [ebp - 4], 8
cmp byte [ebp - 0x18c], 0
je 0x41348c
sub esp, 0x18
mov eax, esp
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x413460
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x158]
call fcn.0042f420
mov ecx, dword [esi]
add esp, 0x18
add ecx, 0xc60
push eax
call fcn.0040c1a0
lea ecx, [ebp - 0x158]
jmp 0x413522
push str.Program_Files__x86__
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040cc50
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x140]
call fcn.0040cdd0
push 0x53ca10
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0xa
push eax
call fcn.00415000
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0xb
push ecx
mov edx, eax
lea ecx, [ebp - 0x158]
call fcn.0040cdd0
mov ecx, dword [esi]
add esp, 0x20
add ecx, 0xc60
push eax
call fcn.0040c1a0
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 0x413545
mov eax, dword [eax]
push eax
call edi
test eax, eax
jne 0x413639
mov eax, dword [esi]
add eax, 0xc60
cmp dword [eax + 0x14], 8
jb 0x41355f
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x413639
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004fb2d0
push edi
lea eax, [ebp - 0x110]
push 0x53d3b8
push eax
call fcn.00415530
mov ecx, dword [esi]
lea eax, [ebp - 0x110]
push 0
push 8
push 0
mov ecx, dword [ecx + 4]
mov edx, 0x53d3ec
push eax
push 0x53d134
push 0
call fcn.0040bbf0
add esp, 0x30
lea ecx, [ebp - 0x128]
push 0x53cb10
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.0042f350
push ecx
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x140]
mov ecx, eax
call fcn.00426080
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.00424880
lea ecx, [ebp - 0x170]
call fcn.00402450
mov ecx, dword [esi]
mov edx, dword [ecx + 0xa40]
test edx, edx
je 0x4136b7
add ecx, 0xc60
cmp dword [ecx + 0x14], 8
jb 0x413689
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 0x4136a8
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.004e1bb1
mov esp, ebp
pop ebp
ret