Function at 0x403770
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x442740]
xor eax, esp
mov dword [esp + 0x74], eax
mov edx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [0x446100], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp word [edx], ax
jne 0x4037b2
xor ecx, ecx
jmp 0x4037c6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4037b7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.00406150
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
mov ecx, 0x443670
push eax
call fcn.00405dd0
push 0x443670
mov edx, str.Setup.exe_lpCmdLine
lea ecx, [esp + 0x68]
call fcn.004046c0
add esp, 4
lea eax, [esp + 0x64]
cmp dword [esp + 0x78], 8
cmovae eax, dword [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.00404480
cmp dword [esp + 0x60], 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
push eax
call fcn.00401ff0
push 5
xor eax, eax
mov dword [esp + 0x4c], 7
push str.zh_CN
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.00406150
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x54]
push eax
call fcn.00405dd0
mov ecx, esi
call fcn.00406370
add esp, 0x18
push str.EasyGameSetup_B8EA9F43_B8F5_C616_FB4D_1C4272F31A5C
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4038bb
mov ecx, esi
call fcn.00402560
push ecx
lea ecx, [esp + 0x14]
call fcn.004024a0
lea ecx, [esp + 0x1c]
mov byte [0x4460f9], al
call fcn.00402660
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x54]
push eax
call fcn.00405dd0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x54]
push eax
call fcn.00405dd0
call fcn.00402f40
add esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x3c]
push eax
call fcn.00405dd0
call fcn.004034d0
add esp, 0x18
mov dword [esp + 0x18], 0
push 0xffffffffffffffff
push dword [0x4460fc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x18]
push eax
push dword [0x4460fc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4039c1
test al, 0x10
je 0x4039c1
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x3c]
push eax
call fcn.00405dd0
call fcn.00413960
add esp, 0x18
cmp dword [esp + 0x30], 8
mov esi, dword [esp + 0x18]
jb 0x4039d8
push dword [esp + 0x1c]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x403a02
push dword [esp + 0x34]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x48], 0
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.00403ea0
push dword [esp + 0x10]
call fcn.0041ae15
add esp, 4
cmp dword [esp + 0x78], 8
jb 0x403a4d
push dword [esp + 0x64]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
cmp dword [esp + 0x60], 8
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
jb 0x403a77
push dword [esp + 0x4c]
call fcn.0041ae15
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0041ae1a
mov esp, ebp
pop ebp
ret 0x10