Function at 0x478d30
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x534], str.debug
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x530], eax
mov ecx, dword [ebp - 0x530]
mov dx, word [ecx]
mov word [ebp - 0x53a], dx
mov eax, dword [ebp - 0x534]
cmp dx, word [eax]
jne 0x478dbc
cmp word [ebp - 0x53a], 0
je 0x478db0
mov ecx, dword [ebp - 0x530]
mov dx, word [ecx + 2]
mov word [ebp - 0x53c], dx
mov eax, dword [ebp - 0x534]
cmp dx, word [eax + 2]
jne 0x478dbc
add dword [ebp - 0x530], 4
add dword [ebp - 0x534], 4
cmp word [ebp - 0x53c], 0
jne 0x478d56
mov dword [ebp - 0x54c], 0
jmp 0x478dc7
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x54c], ecx
mov edx, dword [ebp - 0x54c]
mov dword [ebp - 0x590], edx
cmp dword [ebp - 0x590], 0
jne 0x478de1
call fcn.004789b0
push str.test
call fcn.00475740
add esp, 4
push 0x601bb0
push 0x8a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x538], eax
cmp dword [ebp - 0x538], 0
je 0x479203
mov ecx, dword [ebp - 0x538]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x554], eax
cmp dword [ebp - 0x554], 0
je 0x479203
mov eax, dword [ebp - 0x538]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x550], eax
cmp dword [ebp - 0x550], 0
je 0x479203
push 0
mov edx, dword [ebp - 0x550]
push edx
mov eax, dword [ebp - 0x554]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
call fcn.004cedb9
add esp, 0xc
mov dword [ebp - 0x528], eax
cmp dword [ebp - 0x528], 0
je 0x479203
push 0x601b68
lea ecx, [ebp - 0x594]
call fcn.00412800
lea ecx, [ebp - 0x514]
push ecx
lea edx, [ebp - 0x59c]
push edx
push 1
mov eax, dword [ebp - 0x594]
push eax
mov ecx, dword [ebp - 0x528]
push ecx
call fcn.004ce79f
add esp, 0x14
mov dword [ebp - 0x5b4], eax
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x558], edx
mov eax, dword [ebp - 0x558]
push eax
call fcn.004a400d
add esp, 4
mov dword [ebp - 0x598], eax
mov ecx, dword [ebp - 0x598]
mov dword [ebp - 0x520], ecx
mov edx, dword [ebp - 0x558]
push edx
mov eax, dword [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x59c]
push ecx
mov edx, dword [ebp - 0x528]
push edx
call fcn.004cf210
add esp, 0x10
mov dword [ebp - 0x5ac], eax
mov eax, dword [ebp - 0x520]
add eax, 3
mov dword [ebp - 0x520], eax
mov ecx, dword [ebp - 0x520]
push ecx
lea ecx, [ebp - 0x29c]
call fcn.00411850
push 0
push str.Downloader_id
lea ecx, [ebp - 0x29c]
call fcn.00429b60
mov dword [ebp - 0x5a0], eax
mov edx, dword [ebp - 0x5a0]
push edx
push 0x601c00
lea ecx, [ebp - 0x29c]
call fcn.00429b60
mov dword [ebp - 0x540], eax
mov eax, dword [ebp - 0x540]
add eax, 2
push eax
push 0x601c04
lea ecx, [ebp - 0x29c]
call fcn.00429b60
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
sub ecx, dword [ebp - 0x540]
sub ecx, 2
push ecx
mov edx, dword [ebp - 0x540]
add edx, 2
push edx
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00429ae0
call fcn.004a71ed
movzx ecx, al
test ecx, ecx
jne 0x478fdf
mov edx, dword [ebp - 0x528]
push edx
call fcn.004ce582
add esp, 4
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x5a8], eax
mov ecx, dword [ebp - 0x5a8]
push ecx
call fcn.004a3db3
add esp, 4
mov dword [ebp - 0x520], 0
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
call fcn.0041ce50
mov dword [ebp - 0x578], eax
lea ecx, [ebp - 0x2e4]
call fcn.00411740
mov dword [ebp - 0x548], eax
cmp dword [ebp - 0x548], 0
jne 0x479045
mov dword [ebp - 0x560], 0
jmp 0x4790fd
mov eax, dword [ebp - 0x548]
mov dword [ebp - 0x524], eax
mov ecx, dword [ebp - 0x524]
add ecx, 1
mov dword [ebp - 0x570], ecx
mov edx, dword [ebp - 0x524]
mov al, byte [edx]
mov byte [ebp - 0x519], al
add dword [ebp - 0x524], 1
cmp byte [ebp - 0x519], 0
jne 0x479060
mov ecx, dword [ebp - 0x524]
sub ecx, dword [ebp - 0x570]
mov dword [ebp - 0x574], ecx
mov edx, dword [ebp - 0x574]
add edx, 1
mov dword [ebp - 0x544], edx
cmp dword [ebp - 0x544], 0x3fffffff
jle 0x4790b7
mov dword [ebp - 0x55c], 0
jmp 0x4790f1
mov eax, dword [ebp - 0x544]
shl eax, 1
call fcn.004a4480
mov dword [ebp - 0x57c], esp
mov eax, dword [ebp - 0x578]
push eax
mov ecx, dword [ebp - 0x544]
push ecx
mov edx, dword [ebp - 0x548]
push edx
mov eax, dword [ebp - 0x57c]
push eax
call fcn.0041ce60
mov dword [ebp - 0x55c], eax
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x560], ecx
mov edx, dword [ebp - 0x560]
push edx
lea ecx, [ebp - 0x2cc]
call fcn.00418610
lea eax, [ebp - 0x2cc]
push eax
push str.TS_UI_Frame_
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.004733b0
add esp, 0xc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5b0], esp
lea edx, [ebp - 0x2b4]
push edx
call fcn.004138a0
call fcn.004867e0
add esp, 0x18
push 0
lea ecx, [ebp - 0x2b4]
call fcn.00413640
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x564], eax
call fcn.00486c90
movzx eax, al
test eax, eax
jne 0x4791c8
cmp dword [ebp - 0x564], 0
je 0x4791c8
push 1
mov ecx, dword [ebp - 0x564]
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov dword [ebp - 0x580], 0
lea ecx, [ebp - 0x2b4]
call fcn.00413710
lea ecx, [ebp - 0x2cc]
call fcn.00413710
lea ecx, [ebp - 0x2e4]
call fcn.00411780
lea ecx, [ebp - 0x29c]
call fcn.00411780
mov eax, dword [ebp - 0x580]
jmp 0x479565
mov edx, dword [ebp - 0x528]
push edx
call fcn.004ce582
add esp, 4
lea ecx, [ebp - 0x2b4]
call fcn.00413710
lea ecx, [ebp - 0x2cc]
call fcn.00413710
lea ecx, [ebp - 0x2e4]
call fcn.00411780
lea ecx, [ebp - 0x29c]
call fcn.00411780
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x584], eax
cmp dword [ebp - 0x584], 0
jge 0x479221
xor eax, eax
jmp 0x479565
mov eax, dword [ebp + 8]
push eax
call fcn.004ab744
add esp, 4
call fcn.00478a30
push 0x100
lea ecx, [ebp - 0x284]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea edx, [ebp - 0x284]
push edx
call fcn.00481c90
add esp, 4
mov dword [ebp - 0x5b8], eax
push 0xab8
call fcn.004a3a00
add esp, 4
mov dword [ebp - 0x588], eax
mov ecx, dword [ebp - 0x588]
call fcn.00456640
mov dword [ebp - 0x568], eax
jmp 0x47928b
mov eax, dword [ebp - 0x568]
mov dword [ebp - 0x58c], eax
mov ecx, dword [ebp - 0x58c]
mov dword [ebp - 0x518], ecx
cmp dword [ebp - 0x518], 0
jne 0x4792b3
xor eax, eax
jmp 0x479565
push 0
push 0x190
push 0x258
push 0
push 0
push 0
push 0x800a0000
push 0x601bdc
push 0
mov ecx, dword [ebp - 0x518]
call fcn.004b1086
mov ecx, dword [ebp - 0x518]
call fcn.004666b0
mov dword [ebp - 0x56c], eax
xor edx, edx
mov word [ebp - 0x84], dx
push 0x7e
push 0
lea eax, [ebp - 0x82]
push eax
call fcn.00577360
add esp, 0xc
mov ecx, dword [ebp - 0x56c]
push ecx
push str.AFS_Downloader__d
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
push ecx
call fcn.00486840
add esp, 4
call fcn.00486c90
movzx edx, al
test edx, edx
jne 0x4793d2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4793d2
lea eax, [ebp - 0x56c]
push eax
push str._Already_exist_instance__id_is:
mov ecx, dword [0x63c1b0]
push ecx
push 1
push 0
push 2
push 0x601c98
push 0xa7
push 0x601c08
push 0x80
lea ecx, [ebp - 0x698]
call fcn.00422610
push eax
call fcn.004226f0
add esp, 0xc
mov ecx, eax
call fcn.0043a870
mov ecx, eax
call fcn.0043a930
lea ecx, [ebp - 0x698]
call fcn.00422690
mov edx, dword [ebp - 0x52c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x479565
push 0
mov ecx, dword [ebp - 0x518]
call fcn.0046c9d0
movzx eax, al
test eax, eax
je 0x479425
push 0
push 0xe
mov ecx, dword [ebp - 0x518]
call fcn.00464f50
push 0
push 0x5e0873
push str.CountryStartupForbided
push 0x601ce8
call fcn.0048abf0
mov ecx, eax
call fcn.0048ac90
push 0
push 0
push 0x10
mov ecx, dword [ebp - 0x518]
call fcn.004b14eb
jmp 0x479444
mov ecx, dword [ebp - 0x518]
call fcn.004b0f07
push 1
push 1
mov ecx, dword [ebp - 0x518]
call fcn.004b166b
call fcn.004a9a2f
push str._Wait_exit_1
mov ecx, dword [0x63c1b0]
push ecx
push 1
push 0
push 2
push 0x601cf0
push 0xba
push 0x601da8
push 0x80
lea ecx, [ebp - 0x5f0]
call fcn.00422610
push eax
call fcn.004226f0
add esp, 0xc
mov ecx, eax
call fcn.0043a870
lea ecx, [ebp - 0x5f0]
call fcn.00422690
call fcn.004abc2e
mov edx, dword [ebp - 0x52c]
push edx
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, dword [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x52c], 0
push str._Wait_exit_2
mov ecx, dword [0x63c1b0]
push ecx
push 1
push 0
push 2
push 0x601d58
push 0xc9
push 0x601c74
push 0x80
lea ecx, [ebp - 0x628]
call fcn.00422610
push eax
call fcn.004226f0
add esp, 0xc
mov ecx, eax
call fcn.0043a870
lea ecx, [ebp - 0x628]
call fcn.00422690
call fcn.0048abf0
mov ecx, eax
call fcn.0048b7c0
push str._Wait_exit_3
mov edx, dword [0x63c1b0]
push edx
push 1
push 0
push 2
push str.int___stdcall_wWinMain_struct_HINSTANCE____struct_HINSTANCE____wchar_t__int_
push 0xcb
push str........._srcCommonwWndMain.cpp
push 0x80
lea ecx, [ebp - 0x660]
call fcn.00422610
push eax
call fcn.004226f0
add esp, 0xc
mov ecx, eax
call fcn.0043a870
lea ecx, [ebp - 0x660]
call fcn.00422690
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
lea esp, [ebp - 0x698]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret 0x10