Function at 0x40fa5b
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x4c
push 0xbc
mov eax, 0x45fd5a
call fcn.00441f69
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.0040a128
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.004064d6
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x58]
call fcn.00407e39
lea ecx, [ebp + 0x3c]
push ecx
mov ecx, eax
call fcn.00418ae6
test al, al
jne 0x40faf5
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040a128
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x58]
mov dword [ebp - 4], 4
mov dword [ebp + 0x4c], 3
call fcn.0040e458
mov ecx, dword [eax]
call fcn.00418a62
test al, al
je 0x40faf5
mov bl, 1
jmp 0x40faf7
xor bl, bl
test byte [ebp + 0x4c], 2
je 0x40fb0b
and dword [ebp + 0x4c], 0xfffffffd
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040683e
test byte [ebp + 0x4c], 1
mov dword [ebp - 4], 2
je 0x40fb26
and dword [ebp + 0x4c], 0xfffffffe
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.0040683e
test bl, bl
je 0x4100e7
push str.downloadinfo
lea ecx, [ebp - 0xc8]
call fcn.0040a128
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 5
call fcn.0040e458
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [eax]
call fcn.0041930d
push edi
push esi
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 7
call fcn.0040683e
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 0x4100d9
push dword [ebp + 0x38]
call fcn.00404ddd
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax]
call fcn.00419492
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.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x24]
push eax
call fcn.0040e4f4
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 + 0x481b8c]
push eax
mov byte [ebp - 4], 9
call fcn.00403c92
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127b
push str.exename
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x20]
push eax
call fcn.0040e4f4
lea ecx, [esi + 0x481b90]
push eax
mov byte [ebp - 4], 0xa
call fcn.00403c92
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127b
push str.event
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x14]
push eax
call fcn.0040e4f4
lea ebx, [esi + 0x481b94]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00403c92
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127b
push 0x466e44
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e4f4
lea ecx, [esi + 0x481b9c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00403c92
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127b
push str.country
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 4]
push eax
call fcn.0040e4f4
lea ecx, [esi + 0x481ba0]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403c92
mov ecx, dword [ebp + 4]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127b
push str.label
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e4f4
lea ecx, [esi + 0x481bb4]
push eax
mov byte [ebp - 4], 0xe
call fcn.00403c92
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040127b
mov eax, dword [ebp + 0x7c]
cmp dword [eax - 0xc], 0
je 0x40fd54
push dword [ebx]
lea ecx, [ebp + 0x7c]
call fcn.0040342a
test eax, eax
je 0x40fd54
mov byte [edi + 0x482159], 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.0040d83c
mov edi, dword [ebp + 0x48]
lea eax, [ebp + 0x2c]
push eax
mov ecx, edi
call fcn.0040e4f4
lea eax, [ebp + 0x2c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00409965
pop ecx
lea eax, [ebp + 0x2c]
lea ecx, [esi + 0x481ba4]
push eax
call fcn.00403c92
push str.switches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0040e4f4
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.0041b314
lea eax, [ebp + 0x44]
push eax
call fcn.00409965
pop ecx
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x481b98]
push eax
call fcn.00403c92
push str.launchexepath
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
lea eax, [ebp + 0x30]
push eax
mov ecx, edi
call fcn.0040e4f4
lea eax, [ebp + 0x30]
push eax
mov byte [ebp - 4], 0x11
call fcn.00409965
pop ecx
lea eax, [ebp + 0x30]
lea ecx, [esi + 0x481bb8]
push eax
call fcn.00403c92
push str.launchexeswitches
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040e4f4
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp + 0x44]
call fcn.00403c92
mov ecx, dword [ebp]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x11
call fcn.0040127b
lea eax, [ebp + 0x44]
push eax
mov ecx, edi
call fcn.0041b314
lea eax, [ebp + 0x44]
push eax
call fcn.00409965
pop ecx
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x481bbc]
push eax
call fcn.00403c92
mov edi, str.post_install_check_v2
push edi
lea ecx, [ebp - 0x84]
call fcn.0040a128
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.004064d6
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp + 8]
call fcn.00407e39
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00418ae6
test al, al
jne 0x40fef9
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040a128
or dword [ebp + 0x4c], 8
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0x14
call fcn.0040e458
mov ecx, dword [eax]
call fcn.00418a62
test al, al
je 0x40fef9
mov bl, 1
jmp 0x40fefb
xor bl, bl
test byte [ebp + 0x4c], 8
je 0x40ff11
and dword [ebp + 0x4c], 0xfffffff7
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040683e
test byte [ebp + 0x4c], 4
mov dword [ebp - 4], 0x11
je 0x40ff31
and dword [ebp + 0x4c], 0xfffffffb
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.0040683e
test bl, bl
je 0x41004b
push str.post_install_check_v2
lea ecx, [ebp - 0x84]
call fcn.0040a128
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x15
call fcn.0040e458
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [eax]
call fcn.0041930d
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.0040683e
push 0
lea ecx, [ebp - 0x48]
call fcn.00404ddd
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [eax]
call fcn.00419492
push 0x466d78
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x34]
push eax
call fcn.0040e4f4
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 0x19
call fcn.00409965
pop ecx
push str.type
sub esp, 0x20
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0x18]
push eax
call fcn.0040e4f4
lea ecx, [esi + 0x481ba8]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00403c92
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.0040127b
lea eax, [ebp + 0x34]
lea ecx, [esi + 0x481bac]
push eax
call fcn.00403c92
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x17
call fcn.0040cfed
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.00406889
push dword [ebp - 0x48]
call fcn.0041df8f
pop ecx
push str.execute
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp + 0x40], esp
mov ecx, esp
push eax
call fcn.0040d83c
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x28]
push eax
call fcn.0040e4f4
mov edi, 0x46612c
push edi
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x1b
call fcn.0040342a
lea ecx, [esi + 0x481bb0]
test eax, eax
jne 0x41008c
push edi
jmp 0x410091
push 0x466134
call fcn.00403cdf
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x30]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x44]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.0040cfed
inc dword [ebp + 0x38]
xor esi, esi
inc esi
jmp 0x40fb70
call fcn.00406889
push dword [ebp - 0x64]
call fcn.0041df8f
pop ecx
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0
call fcn.0040cfed
mov ecx, dword [ebp + 0x7c]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x50
leave
ret 0x28