Function at 0x40f771
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x4c
push 0xbc
mov eax, 0x45ef95
call fcn.00441309
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.00409e54
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.004061b0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x58]
call fcn.00407b38
lea ecx, [ebp + 0x3c]
push ecx
mov ecx, eax
call fcn.00404bce
test al, al
jne 0x40f80b
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00409e54
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x58]
mov dword [ebp - 4], 4
mov dword [ebp + 0x4c], 3
call fcn.0040e16e
mov ecx, dword [eax]
call fcn.004183d1
test al, al
je 0x40f80b
mov bl, 1
jmp 0x40f80d
xor bl, bl
test byte [ebp + 0x4c], 2
je 0x40f821
and dword [ebp + 0x4c], 0xfffffffd
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00406538
test byte [ebp + 0x4c], 1
mov dword [ebp - 4], 2
je 0x40f83c
and dword [ebp + 0x4c], 0xfffffffe
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.00406538
test bl, bl
je 0x40fdfd
push str.downloadinfo
lea ecx, [ebp - 0xc8]
call fcn.00409e54
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 5
call fcn.0040e16e
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [eax]
call fcn.00418c35
push edi
push esi
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 7
call fcn.00406538
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 0x40fdef
push dword [ebp + 0x38]
call fcn.00404a47
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax]
call fcn.00418dba
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.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x24]
push eax
call fcn.0040e20a
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 + 0x47faf4]
push eax
mov byte [ebp - 4], 9
call fcn.00403b39
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.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x20]
push eax
call fcn.0040e20a
lea ecx, [esi + 0x47faf8]
push eax
mov byte [ebp - 4], 0xa
call fcn.00403b39
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.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x14]
push eax
call fcn.0040e20a
lea ebx, [esi + 0x47fafc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00403b39
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push 0x464d64
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e20a
lea ecx, [esi + 0x47fb04]
push eax
mov byte [ebp - 4], 0xc
call fcn.00403b39
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.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 4]
push eax
call fcn.0040e20a
lea ecx, [esi + 0x47fb08]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403b39
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.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e20a
lea ecx, [esi + 0x47fb1c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00403b39
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 0x40fa6a
push dword [ebx]
lea ecx, [ebp + 0x7c]
call fcn.004033bc
test eax, eax
je 0x40fa6a
mov byte [edi + 0x4800c1], 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.0040d56a
mov edi, dword [ebp + 0x48]
lea eax, [ebp + 0x2c]
push eax
mov ecx, edi
call fcn.0040e20a
lea eax, [ebp + 0x2c]
push eax
mov byte [ebp - 4], 0xf
call fcn.004095e2
pop ecx
lea eax, [ebp + 0x2c]
lea ecx, [esi + 0x47fb0c]
push eax
call fcn.00403b39
push str.switches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d56a
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0040e20a
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.00409896
lea eax, [ebp + 0x44]
push eax
call fcn.004095e2
pop ecx
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x47fb00]
push eax
call fcn.00403b39
push str.launchexepath
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d56a
lea eax, [ebp + 0x30]
push eax
mov ecx, edi
call fcn.0040e20a
lea eax, [ebp + 0x30]
push eax
mov byte [ebp - 4], 0x11
call fcn.004095e2
pop ecx
lea eax, [ebp + 0x30]
lea ecx, [esi + 0x47fb20]
push eax
call fcn.00403b39
push str.launchexeswitches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d56a
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040e20a
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp + 0x44]
call fcn.00403b39
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.00409896
lea eax, [ebp + 0x44]
push eax
call fcn.004095e2
pop ecx
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x47fb24]
push eax
call fcn.00403b39
mov edi, str.post_install_check_v2
push edi
lea ecx, [ebp - 0x84]
call fcn.00409e54
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.004061b0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp + 8]
call fcn.00407b38
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00404bce
test al, al
jne 0x40fc0f
push edi
lea ecx, [ebp - 0x4c]
call fcn.00409e54
or dword [ebp + 0x4c], 8
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0x14
call fcn.0040e16e
mov ecx, dword [eax]
call fcn.004183d1
test al, al
je 0x40fc0f
mov bl, 1
jmp 0x40fc11
xor bl, bl
test byte [ebp + 0x4c], 8
je 0x40fc27
and dword [ebp + 0x4c], 0xfffffff7
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406538
test byte [ebp + 0x4c], 4
mov dword [ebp - 4], 0x11
je 0x40fc47
and dword [ebp + 0x4c], 0xfffffffb
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.00406538
test bl, bl
je 0x40fd61
push str.post_install_check_v2
lea ecx, [ebp - 0x84]
call fcn.00409e54
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x15
call fcn.0040e16e
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [eax]
call fcn.00418c35
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.00406538
push 0
lea ecx, [ebp - 0x48]
call fcn.00404a47
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [eax]
call fcn.00418dba
push 0x464c98
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x34]
push eax
call fcn.0040e20a
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 0x19
call fcn.004095e2
pop ecx
push str.type
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x18]
push eax
call fcn.0040e20a
lea ecx, [esi + 0x47fb10]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00403b39
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.0040127f
lea eax, [ebp + 0x34]
lea ecx, [esi + 0x47fb14]
push eax
call fcn.00403b39
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.0040127f
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x17
call fcn.0040cd1b
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.00406583
push dword [ebp - 0x48]
call fcn.0041d350
pop ecx
push str.execute
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d56a
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x28]
push eax
call fcn.0040e20a
mov edi, 0x4640bc
push edi
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x1b
call fcn.004033bc
lea ecx, [esi + 0x47fb18]
test eax, eax
jne 0x40fda2
push edi
jmp 0x40fda7
push 0x4640c4
call fcn.00403b86
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.0040cd1b
inc dword [ebp + 0x38]
xor esi, esi
inc esi
jmp 0x40f886
call fcn.00406583
push dword [ebp - 0x64]
call fcn.0041d350
pop ecx
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0
call fcn.0040cd1b
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