Function at 0x406d60
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538efe
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x104], 0
call fcn.00413c90
cmp dword [0x58bc5c], 0
jne 0x406deb
push 0x20
call fcn.00469ca4
mov ecx, eax
call fcn.00414930
mov dword [0x58bc5c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.004075f0
lea eax, [ebp - 0x28]
push eax
call fcn.00415280
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x406deb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
call fcn.00442a60
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x406dfe
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.00469ca4
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5662b4
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5662ac
mov dword [eax + 4], ecx
mov dword [esi], eax
call fcn.00401ed0
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
call fcn.00441790
sub esp, 8
mov ecx, eax
call fcn.00440b90
test al, al
jne 0x406e99
cmp dword [0x58bc58], 0
je 0x406e61
call fcn.00413e20
mov eax, dword [ebp - 0x108]
mov dword [0x58bc58], eax
lea ecx, [ebp - 0x11c]
call fcn.00413f30
push dword [ebp - 0x11c]
call fcn.0048ac22
add esp, 4
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or eax, 0xffffffff
jmp 0x40730c
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0
call fcn.00410ed0
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
push eax
push 6
mov dword [ebp - 0x48], 0
call fcn.00416d40
add esp, 8
lea ecx, [ebp - 0x88]
push str.APPNAME_EN
call fcn.004075f0
call fcn.00446940
push 0x562ef8
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004465c0
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00408040
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 8
jb 0x406f3b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x406f6a
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00403930
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x406faf
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x406fd8
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x407001
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [0x58bc58], eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x406e4f
sub esp, 8
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x70]
mov dword [ecx], eax
mov eax, dword [ebp - 0x60]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.00412da0
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x407058
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x407073
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00403930
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.004124f0
test al, al
je 0x4071bd
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.00410810
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00411470
lea ecx, [ebp - 0xf8]
call fcn.00413c10
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x154]
call fcn.004149f0
push 0x562f28
lea ecx, [ebp - 0x88]
call fcn.00402100
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00412a20
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x154]
call fcn.00415020
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4070fa
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402090
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004440d0
call fcn.00442ff0
test al, al
jne 0x407159
call fcn.004440d0
call fcn.00442f70
test al, al
jne 0x407159
lea eax, [ebp - 0xf8]
push eax
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0x100]
call fcn.00412000
add esp, 4
jmp 0x4071aa
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x154]
call fcn.00415330
lea eax, [ebp - 0xf8]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x100]
call fcn.00411b80
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 8
jb 0x407196
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0xfc]
call fcn.004116d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
sub esp, 8
call fcn.004425c0
add esp, 4
mov ecx, eax
call fcn.00442270
mov dword [ebp - 4], 1
mov dword [ebp - 0xb0], 0x562f2c
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xb0], 0x563694
mov dword [ebp - 0xac], 0x400000
mov dword [ebp - 4], 3
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xa8], 0x5635fc
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
mov dword [ebp - 0xa8], 0x56365c
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0xfc], eax
call fcn.0040b4e0
mov esi, dword [ebp - 0xfc]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
mov edi, dword [ebp - 0x100]
mov ecx, edi
push eax
call fcn.00470c78
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x14]
test edi, edi
je 0x40728c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.00407330
lea ecx, [ebp - 0x70]
call fcn.00401fe0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4072c2
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x4072eb
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00413d10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 0x10