Function at 0x40165f
Capabilities:
Check mutex on windows
Create process on windows
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e5dbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc58
push ebx
push esi
push edi
push 0x200
lea eax, [esp + 0x464]
push eax
mov edi, ecx
xor ebx, ebx
push 0x1001
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 0x460]
push eax
push ebx
call fcn.0057bc5b
pop ecx
pop ecx
mov ecx, edi
call fcn.004d3770
test al, al
jne 0x4016e0
xor al, al
mov ecx, dword [esp + 0xc64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x62ae38
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x6b3d68], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4016c9
push 2
mov esi, 0x62b2b8
push esi
call fcn.00574826
pop ecx
pop ecx
test eax, eax
je 0x401719
push esi
call fcn.0057483e
pop ecx
mov esi, 0x104
push esi
lea eax, [esp + 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x258]
test eax, eax
je 0x40179e
lea eax, [esp + 0x50]
test eax, eax
je 0x40179e
lea edi, [esp + 0x258]
call fcn.0041ef00
cmp eax, ebx
jne 0x401771
xor eax, eax
movzx ecx, word [esp + eax + 0x258]
mov word [esp + eax + 0x50], cx
dec esi
movzx ecx, cx
inc eax
inc eax
cmp cx, bx
je 0x40179a
cmp esi, ebx
jne 0x401753
jmp 0x401790
add eax, 2
lea edx, [esp + 0x50]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
dec esi
movzx ecx, cx
inc eax
inc eax
cmp cx, bx
je 0x40179a
cmp esi, ebx
jne 0x40177a
xor eax, eax
mov word [esp + 0x256], ax
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x460]
lea edx, [esp + 0x50]
call fcn.0041e920
mov eax, esi
push eax
push 0x62b2b8
push 0x62b2c4
lea eax, [esp + 0x86c]
push 0x200
push eax
call fcn.0041ee90
lea eax, [esp + 0x874]
add esp, 0x14
push eax
call fcn.0059d830
pop ecx
lea esi, [esp + 0x30]
call fcn.00420220
mov dword [esp + 0xc6c], ebx
mov eax, esi
push eax
lea ecx, [edi + 0xa4]
push edi
call fcn.00401e35
test al, al
jne 0x40188b
push 0x62b2d0
lea ecx, [esp + 0x14]
call fcn.004032b0
mov byte [esp + 0xc6c], 1
call fcn.004205d0
push eax
lea ecx, [esp + 0x18]
call fcn.004032b0
mov byte [esp + 0xc6c], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 0x804
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004fa3d0
add esp, 0x18
mov byte [esp + 0xc6c], 1
lea ecx, [esp + 0x14]
call fcn.00401017
mov byte [esp + 0xc6c], bl
lea ecx, [esp + 0x10]
call fcn.00401017
call fcn.00403231
or dword [esp + 0xc6c], 0xffffffff
lea eax, [esp + 0x30]
push eax
call fcn.00420230
jmp 0x4016c9
lea esi, [esp + 0x30]
call fcn.004202b0
lea eax, [edi + 0xf8]
cmp dword [eax + 0x18], 8
jb 0x4018a5
mov eax, dword [eax + 4]
jmp 0x4018a8
add eax, 4
push eax
push ecx
call fcn.00403080
pop ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0040541a
test al, al
jne 0x40192c
push 0x62b2d0
lea ecx, [esp + 0x18]
call fcn.004032b0
mov byte [esp + 0xc6c], 3
lea esi, [esp + 0x30]
call fcn.004205d0
push eax
lea ecx, [esp + 0x14]
call fcn.004032b0
mov byte [esp + 0xc6c], 4
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 0x804
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004fa3d0
add esp, 0x18
mov byte [esp + 0xc6c], 3
lea ecx, [esp + 0x10]
call fcn.00401017
mov byte [esp + 0xc6c], bl
lea ecx, [esp + 0x14]
jmp 0x40186a
call fcn.00403080
mov ecx, eax
call fcn.004056ee
mov dword [esp + 0x10], 1
call fcn.00420960
test eax, eax
jne 0x401af2
mov eax, dword [edi + 0x2c]
mov edi, dword [edi + 0x28]
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0041f4a0
push dword [esp + 0x10]
mov eax, esi
push edi
push eax
call fcn.0041f4f0
xor eax, eax
cmp dword [esp + 0x20], ebx
setne al
push eax
mov eax, esi
push eax
mov eax, dword [esp + 0x24]
call fcn.0041f640
mov byte [esp + 0xc6c], 5
call fcn.00420bb0
test eax, eax
jne 0x401a4e
push str.TORRENT_PATCH
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [esp + 0x18]
call fcn.004032b0
mov byte [esp + 0xc6c], 6
push str.NOT_SUPPORT_UAC
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [esp + 0x14]
call fcn.004032b0
mov byte [esp + 0xc6c], 7
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 0x204
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004fa3d0
add esp, 0x18
mov byte [esp + 0xc6c], 6
lea ecx, [esp + 0x10]
call fcn.00401017
mov byte [esp + 0xc6c], 5
lea ecx, [esp + 0x14]
call fcn.00401017
call fcn.00403231
mov byte [esp + 0xc6c], bl
lea esi, [esp + 0x1c]
call fcn.0041f4a0
jmp 0x401874
cmp dword [esp + 0x24], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*2]
jle 0x401a67
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
jmp 0x401a69
xor ecx, ecx
push 1
push ebx
push eax
push ecx
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x401a39
push str.TORRENT_PATCH
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [esp + 0x18]
call fcn.004032b0
mov byte [esp + 0xc6c], 8
push str.LAUNCH_ERROR_WITH_ADMIN_PRIVILEGES
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [esp + 0x14]
call fcn.004032b0
mov byte [esp + 0xc6c], 9
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 0x204
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004fa3d0
add esp, 0x18
mov byte [esp + 0xc6c], 8
jmp 0x401a1a
push 0x18
call fcn.005740d0
pop ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0xc6c], 0xa
cmp eax, ebx
je 0x401b13
mov ecx, eax
call fcn.00402768
jmp 0x401b15
xor eax, eax
mov byte [esp + 0xc6c], bl
push eax
call fcn.004fcb20
pop ecx
push 0x18
call fcn.005740d0
pop ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0xc6c], 0xb
cmp eax, ebx
je 0x401b44
mov ecx, eax
call fcn.004025ea
jmp 0x401b46
xor eax, eax
mov byte [esp + 0xc6c], bl
push eax
call fcn.004fcb20
pop ecx
lea esi, [esp + 0x30]
call fcn.004202b0
mov eax, esi
push eax
push str.LauncherSkin
call fcn.00403080
call fcn.00405670
push eax
call fcn.0040d34e
pop ecx
pop ecx
test eax, eax
jne 0x401c07
push 0x62b2d0
lea ecx, [esp + 0x18]
call fcn.004032b0
mov byte [esp + 0xc6c], 0xc
call fcn.004205d0
push eax
lea ecx, [esp + 0x14]
call fcn.004032b0
mov byte [esp + 0xc6c], 0xd
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 0x804
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004fa3d0
add esp, 0x18
mov byte [esp + 0xc6c], 0xc
lea ecx, [esp + 0x10]
call fcn.00401017
mov byte [esp + 0xc6c], bl
lea ecx, [esp + 0x14]
call fcn.00401017
call fcn.00403231
or dword [esp + 0xc6c], 0xffffffff
lea eax, [esp + 0x30]
push eax
call fcn.00420230
mov al, bl
jmp 0x4016cb
push 0x1a8
call fcn.005740d0
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0xc6c], 0xe
cmp eax, ebx
je 0x401c61
push str.TORRENT_PATCH
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [esp + 0x14]
call fcn.004032b0
mov byte [esp + 0xc6c], 0xf
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], 1
call fcn.0041afdb
mov esi, eax
jmp 0x401c63
xor esi, esi
mov dword [esp + 0xc6c], ebx
test byte [esp + 0x18], 1
je 0x401c7f
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x10]
call fcn.00401017
mov ecx, esi
call fcn.0041b4f6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x98]
mov dword [edi + 0x44], esi
mov bl, 1
jmp 0x401bee