Function at 0x450230
Capabilities:
Check if file exists
Check mutex on windows
Print debug messages
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538a78
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2d48
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov word [ebp - 0x830], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x82e]
push ecx
call fcn.004b0ac0
add esp, 0xc
push 0x3ff
lea edx, [ebp - 0x830]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x25]
call fcn.0044e620
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x2d14], esp
push 0x54556c
call fcn.00401e30
mov dword [ebp - 0x2d34], eax
mov eax, dword [ebp - 0x2d34]
mov dword [ebp - 0x2d38], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2d18], esp
lea edx, [ebp - 0x830]
push edx
call fcn.00401e30
mov dword [ebp - 0x2d3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25]
call fcn.0044e640
call fcn.0044fda0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x58fb54], eax
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x834], 0
lea ecx, [ebp - 0x83c]
call fcn.00403840
mov byte [ebp - 4], 2
push 0x540e68
lea eax, [ebp - 0x2d1c]
push eax
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x2d40], eax
mov ecx, dword [ebp - 0x2d40]
mov dword [ebp - 0x2d44], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2d44]
push edx
lea ecx, [ebp - 0x83c]
call fcn.00401970
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d1c]
call fcn.00401eb0
lea ecx, [ebp - 0x83c]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4503c1
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x2d20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x83c]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25]
call fcn.0044e630
mov eax, dword [ebp - 0x2d20]
jmp 0x450938
lea ecx, [ebp - 0x20]
call fcn.00402d30
mov byte [ebp - 4], 4
push 1
lea ecx, [ebp - 0x20]
call fcn.00403420
call fcn.004a60e0
mov dword [0x58fb50], eax
call fcn.0044e4f0
push 0
lea ecx, [ebp - 0x2d24]
push ecx
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x2d48], eax
mov ecx, dword [ebp - 0x2d48]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2d24]
call fcn.00401eb0
mov dword [ebp - 0x838], 0
cmp dword [ebp + 0x10], 0
je 0x45071c
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x844]
call fcn.00401e30
mov byte [ebp - 4], 5
push 0
push str._dopush1
lea ecx, [ebp - 0x844]
call fcn.004282c0
cmp eax, 0xffffffff
je 0x450496
mov byte [ebp - 4], 6
call fcn.00450100
jmp 0x45047b
mov dword [ebp - 4], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
jmp 0x4508f4
push 0
push str._exam1
lea ecx, [ebp - 0x844]
call fcn.004282c0
cmp eax, 0xffffffff
je 0x4504f2
mov byte [ebp - 4], 8
push 0
push 0
call fcn.0044f050
add esp, 8
jmp 0x4504d7
mov dword [ebp - 4], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
jmp 0x4508f4
push 0
push str._examnofix1
lea ecx, [ebp - 0x844]
call fcn.004282c0
cmp eax, 0xffffffff
je 0x45054e
mov byte [ebp - 4], 0xa
push 1
push 1
call fcn.0044f050
add esp, 8
jmp 0x450533
mov dword [ebp - 4], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
jmp 0x4508f4
push 0
push 0x545520
lea ecx, [ebp - 0x844]
call fcn.004282c0
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x840], 0xffffffff
je 0x45067b
mov dword [ebp - 0x848], 1
push 0x545520
call fcn.004b0eb7
add esp, 4
add eax, dword [ebp - 0x840]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp - 0x840]
push eax
lea ecx, [ebp - 0x2d28]
push ecx
lea ecx, [ebp - 0x844]
call fcn.00408770
mov dword [ebp - 0x2d4c], eax
mov edx, dword [ebp - 0x2d4c]
mov dword [ebp - 0x2d50], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x2d50]
push eax
lea ecx, [ebp - 0x844]
call fcn.00401970
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2d28]
call fcn.00401eb0
lea ecx, [ebp - 0x844]
call fcn.0043e290
push eax
call fcn.004b5d4a
add esp, 4
mov dword [ebp - 0x848], eax
cmp dword [ebp - 0x848], 1
jl 0x450612
cmp dword [ebp - 0x848], 0x14
jle 0x450631
push 0x5454f4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
jmp 0x4508f4
mov byte [ebp - 4], 0xd
push 0
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.0044f050
add esp, 8
jmp 0x450660
mov dword [ebp - 4], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
jmp 0x4508f4
push 0
push str._crash1
lea ecx, [ebp - 0x844]
call fcn.004282c0
cmp eax, 0xffffffff
je 0x4506bc
mov dword [ebp - 0x84c], 0
mov edx, dword [ebp - 0x84c]
mov dword [edx], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
jmp 0x4508f4
push 0
push str._restoreproxy1
lea ecx, [ebp - 0x844]
call fcn.004282c0
cmp eax, 0xffffffff
je 0x4506ec
call fcn.0044fae0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
jmp 0x4508f4
push 0
push str._restart1
lea ecx, [ebp - 0x844]
call fcn.004282c0
cmp eax, 0xffffffff
je 0x45070d
mov dword [ebp - 0x838], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x844]
call fcn.00401eb0
call fcn.0044f600
mov eax, dword [str.GlobalEntClient_360_v1.0_MUTEX]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x45074e
mov dword [ebp - 0x834], 0xffffffff
jmp 0x4508f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x450820
cmp dword [ebp - 0x838], 0
jne 0x450777
mov dword [ebp - 0x834], 0xffffffff
jmp 0x4508f4
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x854], 0
jmp 0x45079c
mov ecx, dword [ebp - 0x854]
add ecx, 1
mov dword [ebp - 0x854], ecx
cmp dword [ebp - 0x854], 0x3c
jge 0x450808
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [str.GlobalEntClient_360_v1.0_MUTEX]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4507ed
mov dword [ebp - 0x834], 0xffffffff
jmp 0x4508f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x450806
mov dword [ebp - 0x850], 1
jmp 0x450808
jmp 0x45078d
cmp dword [ebp - 0x850], 0
jne 0x450820
mov dword [ebp - 0x834], 0xffffffff
jmp 0x4508f4
push 0x540e68
lea edx, [ebp - 0x2d2c]
push edx
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x2d54], eax
mov eax, dword [ebp - 0x2d54]
mov dword [ebp - 0x2d58], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x2d58]
push ecx
lea ecx, [ebp - 0x83c]
call fcn.00401970
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d2c]
call fcn.00401eb0
lea edx, [ebp - 0x83c]
push edx
mov ecx, 0x58f810
call fcn.0041d750
call fcn.0041eb50
call fcn.00403f60
lea ecx, [ebp - 0x2d10]
call fcn.00451430
mov byte [ebp - 4], 0x10
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x2d10]
call fcn.00451b20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d10]
call fcn.00451a80
call fcn.00403f80
mov ecx, 0x58fa40
call fcn.00445c70
call fcn.0041eb80
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x58f810
call fcn.0041d840
mov ecx, 0x58fd38
call fcn.00482140
lea ecx, [ebp - 0x20]
call fcn.00403660
mov edx, dword [ebp - 0x834]
mov dword [ebp - 0x2d30], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x83c]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25]
call fcn.0044e630
mov eax, dword [ebp - 0x2d30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret 0x10