Function at 0x40f35d
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x4c
push 0xbc
mov eax, 0x45f217
call fcn.00441509
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.00409b87
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.0040610c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x58]
call fcn.00407b7e
lea ecx, [ebp + 0x3c]
push ecx
mov ecx, eax
call fcn.00417fc1
test al, al
jne 0x40f3f7
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00409b87
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x58]
mov dword [ebp - 4], 4
mov dword [ebp + 0x4c], 3
call fcn.0040dd5a
mov ecx, dword [eax]
call fcn.00417f3d
test al, al
je 0x40f3f7
mov bl, 1
jmp 0x40f3f9
xor bl, bl
test byte [ebp + 0x4c], 2
je 0x40f40d
and dword [ebp + 0x4c], 0xfffffffd
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00406474
test byte [ebp + 0x4c], 1
mov dword [ebp - 4], 2
je 0x40f428
and dword [ebp + 0x4c], 0xfffffffe
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.00406474
test bl, bl
je 0x40f9ef
push str.downloadinfo
lea ecx, [ebp - 0xc8]
call fcn.00409b87
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 5
call fcn.0040dd5a
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [eax]
call fcn.004187e8
push edi
push esi
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 7
call fcn.00406474
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 0x40f9e1
push dword [ebp + 0x38]
call fcn.00404a11
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax]
call fcn.0041896d
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.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x24]
push eax
call fcn.0040ddf6
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 + 0x47fd94]
push eax
mov byte [ebp - 4], 9
call fcn.00403b64
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.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x20]
push eax
call fcn.0040ddf6
lea ecx, [esi + 0x47fd98]
push eax
mov byte [ebp - 4], 0xa
call fcn.00403b64
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.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x14]
push eax
call fcn.0040ddf6
lea ebx, [esi + 0x47fd9c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00403b64
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push 0x465cb4
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.0040ddf6
lea ecx, [esi + 0x47fda4]
push eax
mov byte [ebp - 4], 0xc
call fcn.00403b64
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127f
push 0x465ca4
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 4]
push eax
call fcn.0040ddf6
lea ecx, [esi + 0x47fda8]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403b64
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.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ddf6
lea ecx, [esi + 0x47fdbc]
push eax
mov byte [ebp - 4], 0xe
call fcn.00403b64
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 0x40f656
push dword [ebx]
lea ecx, [ebp + 0x7c]
call fcn.004033e7
test eax, eax
je 0x40f656
mov byte [edi + 0x480361], 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.0040d156
mov edi, dword [ebp + 0x48]
lea eax, [ebp + 0x2c]
push eax
mov ecx, edi
call fcn.0040ddf6
lea eax, [ebp + 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.0040941d
lea eax, [ebp + 0x2c]
lea ecx, [esi + 0x47fdac]
push eax
call fcn.00403b64
push str.switches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d156
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0040ddf6
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.0040936e
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0040941d
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x47fda0]
push eax
call fcn.00403b64
push str.launchexepath
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d156
lea eax, [ebp + 0x30]
push eax
mov ecx, edi
call fcn.0040ddf6
lea eax, [ebp + 0x30]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.0040941d
lea eax, [ebp + 0x30]
lea ecx, [esi + 0x47fdc0]
push eax
call fcn.00403b64
push str.launchexeswitches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d156
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040ddf6
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp + 0x44]
call fcn.00403b64
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.0040936e
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0040941d
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x47fdc4]
push eax
call fcn.00403b64
mov edi, str.post_install_check_v2
push edi
lea ecx, [ebp - 0x84]
call fcn.00409b87
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.0040610c
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp + 8]
call fcn.00407b7e
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00417fc1
test al, al
jne 0x40f7ff
push edi
lea ecx, [ebp - 0x4c]
call fcn.00409b87
or dword [ebp + 0x4c], 8
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0x14
call fcn.0040dd5a
mov ecx, dword [eax]
call fcn.00417f3d
test al, al
je 0x40f7ff
mov bl, 1
jmp 0x40f801
xor bl, bl
test byte [ebp + 0x4c], 8
je 0x40f817
and dword [ebp + 0x4c], 0xfffffff7
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406474
test byte [ebp + 0x4c], 4
mov dword [ebp - 4], 0x11
je 0x40f837
and dword [ebp + 0x4c], 0xfffffffb
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.00406474
test bl, bl
je 0x40f953
push str.post_install_check_v2
lea ecx, [ebp - 0x84]
call fcn.00409b87
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x15
call fcn.0040dd5a
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [eax]
call fcn.004187e8
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.00406474
push 0
lea ecx, [ebp - 0x48]
call fcn.00404a11
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [eax]
call fcn.0041896d
push 0x465be8
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x34]
push eax
call fcn.0040ddf6
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 0x19
call fcn.0040941d
push str.type
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x18]
push eax
call fcn.0040ddf6
lea ecx, [esi + 0x47fdb0]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00403b64
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.0040127f
lea eax, [ebp + 0x34]
lea ecx, [esi + 0x47fdb4]
push eax
call fcn.00403b64
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.0040127f
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x17
call fcn.0040c907
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.004064bf
push dword [ebp - 0x48]
call fcn.0041d4f3
pop ecx
push str.execute
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d156
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x28]
push eax
call fcn.0040ddf6
mov edi, 0x46506c
push edi
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x1b
call fcn.004033e7
lea ecx, [esi + 0x47fdb8]
test eax, eax
jne 0x40f994
push edi
jmp 0x40f999
push 0x465074
call fcn.00403bb1
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.0040c907
inc dword [ebp + 0x38]
xor esi, esi
inc esi
jmp 0x40f472
call fcn.004064bf
push dword [ebp - 0x64]
call fcn.0041d4f3
pop ecx
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0
call fcn.0040c907
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