Function at 0x437d10
Capabilities:
Check if file exists
Create directory
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e7a31
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.004c3aa0
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x2028], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x2040]
mov dword fs:[0], eax
xor esi, esi
cmp dword [ecx + 0x19662], esi
mov dword [esp + 0x1c], ecx
jne 0x438147
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
push 0x1a
lea eax, [esp + 0x44]
push eax
push esi
call edi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406e40
lea ecx, [esp + 0x14]
mov dword [esp + 0x2048], esi
call fcn.00423aa0
mov ecx, eax
call fcn.00422e60
push eax
lea ecx, [esp + 0x18]
call fcn.00407450
lea edx, [esp + 0x14]
push 0x4fbfc8
push edx
call fcn.00440bf0
add esp, 8
test al, al
je 0x437dc5
push 0x4fbfcc
lea ecx, [esp + 0x18]
call fcn.00406c10
push 0x4fbfe0
push 0x4fbfe4
lea ecx, [esp + 0x1c]
call fcn.00435560
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004109d0
push 0x4fbfe8
push eax
call fcn.00410850
mov bl, al
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x437e2a
push 0x4fbfec
lea ecx, [esp + 0x18]
call fcn.00410eb0
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x437e49
mov edx, dword [esp + 0x14]
push esi
push edx
call ebp
push 7
push 0x4fbff0
lea ecx, [esp + 0x1c]
call fcn.00410bd0
mov eax, dword [esp + 0x14]
push eax
call ebx
test eax, eax
jne 0x437e6c
mov ecx, dword [esp + 0x14]
push esi
push ecx
call ebp
mov edx, dword [esp + 0x14]
cmp dword [edx - 4], 1
jle 0x437e87
mov edx, dword [edx - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov edx, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0x34], esi
mov word [esp + 0x24], si
mov dword [esp + 0x38], 7
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437ea0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00401930
push 0
push 0x23
lea eax, [esp + 0x44]
push eax
push 0
mov byte [esp + 0x2058], 1
call edi
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437ed6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406c90
lea ecx, [esp + 0x14]
call fcn.00423aa0
mov ecx, eax
call fcn.00422e60
push eax
lea ecx, [esp + 0x18]
call fcn.00407450
lea edx, [esp + 0x14]
push 0x4fc000
push edx
call fcn.00440bf0
add esp, 8
test al, al
je 0x437f32
push 0x4fc004
lea ecx, [esp + 0x18]
call fcn.00406c10
push 0x4fc018
push 0x4fc01c
lea ecx, [esp + 0x1c]
call fcn.00435560
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004109d0
push 0x4fc020
push eax
call fcn.00410850
mov bl, al
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x437f97
push 0x4fc024
lea ecx, [esp + 0x18]
call fcn.00410eb0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call esi
test eax, eax
jne 0x437fb0
mov edx, dword [esp + 0x14]
push eax
push edx
call ebp
push 7
push 0x4fc028
lea ecx, [esp + 0x1c]
call fcn.00410bd0
mov eax, dword [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x437fd3
mov ecx, dword [esp + 0x14]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x14]
cmp dword [edx - 4], 1
jle 0x437fee
mov edx, dword [edx - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437ff3
sub eax, esi
mov esi, dword [esp + 0x1c]
sar eax, 1
push eax
add esi, 0x1964e
push edx
mov ecx, esi
call fcn.00401930
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x438028
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x14]
push ecx
push eax
push edx
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.00434b00
test eax, eax
je 0x4380f8
call fcn.004b978a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x43805e
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
cmp dword [esi + 0x18], edi
mov byte [esp + 0x2048], 2
jb 0x438080
mov esi, dword [esi + 4]
jmp 0x438083
add esi, 4
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x438091
lea eax, [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x20]
push 0x4fc038
push ecx
call fcn.00406da0
mov esi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x4380c0
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406b50
mov esi, dword [esp + 0x18]
push ebx
push ebx
push esi
push 0x4fc06c
push 0x4fc074
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov byte [esp + 0x2048], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4380f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], edi
jb 0x43810b
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004aef39
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
mov dword [esp + 0x2048], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0x1964e
mov ecx, dword [esp + 0x2040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2028]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2038
ret