Function at 0x40f5e1
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x50
push 0xd4
mov eax, 0x45eab5
call fcn.00440e29
mov dword [ebp + 0x40], ecx
and dword [ebp + 0x50], 0
and dword [ebp - 4], 0
mov esi, str.downloadinfo
xor edi, edi
push esi
lea ecx, [ebp - 0x48]
inc edi
mov byte [ebp - 4], 1
call fcn.00409e0b
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x74]
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 2
mov dword [ebp + 0x50], edi
call fcn.00406143
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x5c]
call fcn.00407e0e
lea ecx, [ebp + 0x44]
push ecx
mov ecx, eax
call fcn.00404bc8
test al, al
jne 0x40f676
push esi
lea ecx, [ebp - 0x64]
call fcn.00409e0b
push 3
pop eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x50], eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp + 0x5c]
call fcn.0040dfde
mov ecx, dword [eax]
call fcn.00417ad3
test al, al
je 0x40f676
mov bl, 1
jmp 0x40f678
xor bl, bl
test byte [ebp + 0x50], 2
je 0x40f68d
and dword [ebp + 0x50], 0xfffffffd
push 0
push edi
lea ecx, [ebp - 0x64]
call fcn.004064cb
test byte [ebp + 0x50], 1
mov dword [ebp - 4], edi
je 0x40f6a5
and dword [ebp + 0x50], 0xfffffffe
push 0
push edi
lea ecx, [ebp - 0x48]
call fcn.004064cb
test bl, bl
je 0x40fc35
push esi
lea ecx, [ebp - 0xe0]
call fcn.00409e0b
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 4
call fcn.0040dfde
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [eax]
call fcn.00418337
push 0
push edi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.004064cb
and dword [ebp + 0x3c], 0
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x44]
sar eax, 2
cmp dword [ebp + 0x3c], eax
jae 0x40fc27
push dword [ebp + 0x3c]
call fcn.00404a39
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [eax]
call fcn.004184bc
push str.downloadurl
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.0040d3da
mov ebx, dword [ebp + 0x40]
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0040e07a
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ebp + 0x3c]
imul ecx, ecx, 0x9c4
imul edx, edx, 0x34
lea esi, [ecx + edx]
lea ecx, [esi + 0x47ed94]
push eax
mov byte [ebp - 4], 8
call fcn.00403b6d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0040127b
push str.exename
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp + 4]
push eax
mov ecx, ebx
call fcn.0040e07a
lea ecx, [esi + 0x47ed98]
push eax
mov byte [ebp - 4], 9
call fcn.00403b6d
mov ecx, dword [ebp + 4]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0040127b
push str.event
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0040e07a
lea ecx, [esi + 0x47ed9c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00403b6d
mov ecx, dword [ebp]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0040127b
push 0x464cb4
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0040e07a
lea ecx, [esi + 0x47eda4]
push eax
mov byte [ebp - 4], 0xb
call fcn.00403b6d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0040127b
push 0x464ca4
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0040e07a
lea ecx, [esi + 0x47eda8]
push eax
mov byte [ebp - 4], 0xc
call fcn.00403b6d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0040127b
push str.label
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0040e07a
lea ecx, [esi + 0x47edbc]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403b6d
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0040127b
push str.post_install_check
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp + 0x30]
push eax
mov ecx, ebx
call fcn.0040e07a
lea eax, [ebp + 0x30]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.004096ad
lea eax, [ebp + 0x30]
lea ecx, [esi + 0x47edac]
push eax
call fcn.00403b6d
push str.switches
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp + 0x4c]
push eax
mov ecx, ebx
call fcn.0040e07a
lea eax, [ebp + 0x4c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xf
call fcn.004095fe
lea eax, [ebp + 0x4c]
push eax
mov ecx, ebx
call fcn.004096ad
lea eax, [ebp + 0x4c]
lea ecx, [esi + 0x47eda0]
push eax
call fcn.00403b6d
push str.launchexepath
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp + 0x34]
push eax
mov ecx, ebx
call fcn.0040e07a
lea eax, [ebp + 0x34]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.004096ad
lea eax, [ebp + 0x34]
lea ecx, [esi + 0x47edc0]
push eax
call fcn.00403b6d
push str.launchexeswitches
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0040e07a
push eax
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00403b6d
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.0040127b
lea eax, [ebp + 0x4c]
push eax
mov ecx, ebx
call fcn.004095fe
lea eax, [ebp + 0x4c]
push eax
mov ecx, ebx
call fcn.004096ad
lea eax, [ebp + 0x4c]
lea ecx, [esi + 0x47edc4]
push eax
call fcn.00403b6d
mov ebx, str.post_install_check_v2
push ebx
lea ecx, [ebp - 0x80]
call fcn.00409e0b
or dword [ebp + 0x50], 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x24]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c]
call fcn.00406143
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp + 0xc]
call fcn.00407e0e
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00404bc8
test al, al
jne 0x40fa54
push ebx
lea ecx, [ebp - 0xc4]
call fcn.00409e0b
or dword [ebp + 0x50], 8
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0x13
call fcn.0040dfde
mov ecx, dword [eax]
call fcn.00417ad3
test al, al
je 0x40fa54
mov bl, 1
jmp 0x40fa56
xor bl, bl
test byte [ebp + 0x50], 8
je 0x40fa6e
and dword [ebp + 0x50], 0xfffffff7
push 0
push edi
lea ecx, [ebp - 0xc4]
call fcn.004064cb
test byte [ebp + 0x50], 4
mov dword [ebp - 4], 0x10
je 0x40fa8a
and dword [ebp + 0x50], 0xfffffffb
push 0
push edi
lea ecx, [ebp - 0x80]
call fcn.004064cb
test bl, bl
je 0x40fb9c
push str.post_install_check_v2
lea ecx, [ebp - 0x80]
call fcn.00409e0b
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x14
call fcn.0040dfde
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [eax]
call fcn.00418337
push 0
push edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x16
call fcn.004064cb
push 0
lea ecx, [ebp - 0x60]
call fcn.00404a39
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [eax]
call fcn.004184bc
push 0x464be8
sub esp, 0x20
lea eax, [ebp - 0xa8]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x17
call fcn.0040d3da
mov ecx, dword [ebp + 0x40]
lea eax, [ebp + 0x38]
push eax
call fcn.0040e07a
mov ecx, dword [ebp + 0x40]
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 0x18
call fcn.004096ad
push str.type
sub esp, 0x20
lea eax, [ebp - 0xa8]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
mov ecx, dword [ebp + 0x40]
lea eax, [ebp - 0x14]
push eax
call fcn.0040e07a
lea ecx, [esi + 0x47edb0]
push eax
mov byte [ebp - 4], 0x19
call fcn.00403b6d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x18
call fcn.0040127b
lea eax, [ebp + 0x38]
lea ecx, [esi + 0x47edb4]
push eax
call fcn.00403b6d
mov ecx, dword [ebp + 0x38]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x16
call fcn.0040cb8b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x10
call fcn.00406516
push dword [ebp - 0x60]
call fcn.0041ce25
pop ecx
push str.execute
sub esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp + 0x48], esp
mov ecx, esp
push eax
call fcn.0040d3da
mov ecx, dword [ebp + 0x40]
lea eax, [ebp + 0x2c]
push eax
call fcn.0040e07a
mov ebx, 0x464074
push ebx
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 0x1a
call fcn.004033f0
lea ecx, [esi + 0x47edb8]
test eax, eax
jne 0x40fbdd
push ebx
jmp 0x40fbe2
push 0x46407c
call fcn.00403bba
mov ecx, dword [ebp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x4c]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x30]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.0040cb8b
inc dword [ebp + 0x3c]
jmp 0x40f6ed
call fcn.00406516
push dword [ebp - 0x44]
call fcn.0041ce25
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x5c]
call fcn.0040cb8b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x54
leave
ret 0x24