Function at 0x40fa6b
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x4c
push 0xbc
mov eax, 0x45f9d3
call fcn.00441ce9
mov dword [ebp + 0x48], ecx
xor edi, edi
mov dword [ebp + 0x4c], edi
mov dword [ebp - 4], edi
mov ebx, str.downloadinfo
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040a66c
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x70]
xor esi, esi
inc esi
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 3
mov dword [ebp + 0x4c], esi
call fcn.004071c5
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x58]
call fcn.00408853
lea ecx, [ebp + 0x3c]
push ecx
mov ecx, eax
call fcn.00418852
test al, al
jne 0x40fb05
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040a66c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x58]
mov dword [ebp - 4], 4
mov dword [ebp + 0x4c], 3
call fcn.0040e465
mov ecx, dword [eax]
call fcn.004187ce
test al, al
je 0x40fb05
mov bl, 1
jmp 0x40fb07
xor bl, bl
test byte [ebp + 0x4c], 2
je 0x40fb1b
and dword [ebp + 0x4c], 0xfffffffd
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00407583
test byte [ebp + 0x4c], 1
mov dword [ebp - 4], 2
je 0x40fb36
and dword [ebp + 0x4c], 0xfffffffe
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.00407583
test bl, bl
je 0x4100f7
push str.downloadinfo
lea ecx, [ebp - 0xc8]
call fcn.0040a66c
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 5
call fcn.0040e465
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [eax]
call fcn.0041902a
push edi
push esi
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 7
call fcn.00407583
mov dword [ebp + 0x38], edi
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x64]
sar eax, 2
cmp dword [ebp + 0x38], eax
jae 0x4100e9
push dword [ebp + 0x38]
call fcn.00405972
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax]
call fcn.004191af
push str.downloadurl
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 8
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x24]
push eax
call fcn.0040e501
mov edi, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x38]
imul edi, edi, 0x9c4
imul ecx, ecx, 0x34
lea esi, [ecx + edi]
lea ecx, [esi + 0x480c1c]
push eax
mov byte [ebp - 4], 9
call fcn.00403ea6
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push str.exename
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x20]
push eax
call fcn.0040e501
lea ecx, [esi + 0x480c20]
push eax
mov byte [ebp - 4], 0xa
call fcn.00403ea6
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push str.event
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x14]
push eax
call fcn.0040e501
lea ebx, [esi + 0x480c24]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00403ea6
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push 0x465eac
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e501
lea ecx, [esi + 0x480c2c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00403ea6
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push str.country
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 4]
push eax
call fcn.0040e501
lea ecx, [esi + 0x480c30]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403ea6
mov ecx, dword [ebp + 4]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push str.label
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e501
lea ecx, [esi + 0x480c44]
push eax
mov byte [ebp - 4], 0xe
call fcn.00403ea6
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
mov eax, dword [ebp + 0x7c]
cmp dword [eax - 0xc], 0
je 0x40fd64
push dword [ebx]
lea ecx, [ebp + 0x7c]
call fcn.00403457
test eax, eax
je 0x40fd64
mov byte [edi + 0x4811e9], 1
push str.post_install_check
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov edi, dword [ebp + 0x48]
lea eax, [ebp + 0x2c]
push eax
mov ecx, edi
call fcn.0040e501
lea eax, [ebp + 0x2c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00404a15
pop ecx
lea eax, [ebp + 0x2c]
lea ecx, [esi + 0x480c34]
push eax
call fcn.00403ea6
push str.switches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0040e501
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.0041b264
lea eax, [ebp + 0x44]
push eax
call fcn.00404a15
pop ecx
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x480c28]
push eax
call fcn.00403ea6
push str.launchexepath
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
lea eax, [ebp + 0x30]
push eax
mov ecx, edi
call fcn.0040e501
lea eax, [ebp + 0x30]
push eax
mov byte [ebp - 4], 0x11
call fcn.00404a15
pop ecx
lea eax, [ebp + 0x30]
lea ecx, [esi + 0x480c48]
push eax
call fcn.00403ea6
push str.launchexeswitches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040e501
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp + 0x44]
call fcn.00403ea6
mov ecx, dword [ebp]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x11
call fcn.0040127f
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0041b264
lea eax, [ebp + 0x44]
push eax
call fcn.00404a15
pop ecx
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x480c4c]
push eax
call fcn.00403ea6
mov edi, str.post_install_check_v2
push edi
lea ecx, [ebp - 0x84]
call fcn.0040a66c
or dword [ebp + 0x4c], 4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x20]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.004071c5
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp + 8]
call fcn.00408853
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00418852
test al, al
jne 0x40ff09
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040a66c
or dword [ebp + 0x4c], 8
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0x14
call fcn.0040e465
mov ecx, dword [eax]
call fcn.004187ce
test al, al
je 0x40ff09
mov bl, 1
jmp 0x40ff0b
xor bl, bl
test byte [ebp + 0x4c], 8
je 0x40ff21
and dword [ebp + 0x4c], 0xfffffff7
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00407583
test byte [ebp + 0x4c], 4
mov dword [ebp - 4], 0x11
je 0x40ff41
and dword [ebp + 0x4c], 0xfffffffb
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.00407583
test bl, bl
je 0x41005b
push str.post_install_check_v2
lea ecx, [ebp - 0x84]
call fcn.0040a66c
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x15
call fcn.0040e465
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [eax]
call fcn.0041902a
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.00407583
push 0
lea ecx, [ebp - 0x48]
call fcn.00405972
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [eax]
call fcn.004191af
push 0x465de0
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x34]
push eax
call fcn.0040e501
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 0x19
call fcn.00404a15
pop ecx
push str.type
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x18]
push eax
call fcn.0040e501
lea ecx, [esi + 0x480c38]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00403ea6
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.0040127f
lea eax, [ebp + 0x34]
lea ecx, [esi + 0x480c3c]
push eax
call fcn.00403ea6
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.0040127f
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x17
call fcn.0040d18d
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.004075ce
push dword [ebp - 0x48]
call fcn.0041dd1b
pop ecx
push str.execute
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d8d4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x28]
push eax
call fcn.0040e501
mov edi, 0x4652ac
push edi
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x1b
call fcn.00403457
lea ecx, [esi + 0x480c40]
test eax, eax
jne 0x41009c
push edi
jmp 0x4100a1
push 0x4652b4
call fcn.00403ef3
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
call fcn.0040127f
mov ecx, dword [ebp + 0x30]
add ecx, 0xfffffff0
call fcn.0040127f
mov ecx, dword [ebp + 0x44]
add ecx, 0xfffffff0
call fcn.0040127f
mov ecx, dword [ebp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040127f
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.0040d18d
inc dword [ebp + 0x38]
xor esi, esi
inc esi
jmp 0x40fb80
call fcn.004075ce
push dword [ebp - 0x64]
call fcn.0041dd1b
pop ecx
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0
call fcn.0040d18d
mov ecx, dword [ebp + 0x7c]
add ecx, 0xfffffff0
call fcn.0040127f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x50
leave
ret 0x28