Function at 0x40b943
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x38
push 0xe0
mov eax, 0x46ec67
call fcn.00450123
mov dword [ebp + 0x34], ecx
and dword [ebp + 0x38], 0
and dword [ebp - 4], 0
mov esi, str.downloadinfo
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00408623
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x5c]
xor edi, edi
inc edi
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 2
mov dword [ebp + 0x38], edi
call fcn.00403b17
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0x44]
call fcn.00405bd8
lea ecx, [ebp + 0x28]
push ecx
mov ecx, eax
call fcn.00402141
test al, al
jne 0x40b9d8
push esi
lea ecx, [ebp - 0x70]
call fcn.00408623
push 3
pop eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x38], eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp + 0x44]
call fcn.0040a673
mov ecx, dword [eax]
call fcn.00411846
test al, al
je 0x40b9d8
mov bl, 1
jmp 0x40b9da
xor bl, bl
test byte [ebp + 0x38], 2
je 0x40b9ef
and dword [ebp + 0x38], 0xfffffffd
push 0
push edi
lea ecx, [ebp - 0x70]
call fcn.0040402c
test byte [ebp + 0x38], 1
mov dword [ebp - 4], edi
je 0x40ba07
and dword [ebp + 0x38], 0xfffffffe
push 0
push edi
lea ecx, [ebp - 0x54]
call fcn.0040402c
test bl, bl
je 0x40bebd
push esi
lea ecx, [ebp - 0xec]
call fcn.00408623
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 4
call fcn.0040a673
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [eax]
call fcn.0041205b
push 0
push edi
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 6
call fcn.0040402c
and dword [ebp + 0x30], 0
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x50]
sar eax, 2
cmp dword [ebp + 0x30], eax
jae 0x40beaf
push dword [ebp + 0x30]
call fcn.004020ab
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [eax]
call fcn.004121e0
push str.downloadurl
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.0040a42e
mov ebx, dword [ebp + 0x34]
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0040a70f
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x30]
imul ecx, ecx, 0x858
imul edx, edx, 0x28
lea esi, [ecx + edx]
lea ecx, [esi + 0x48ec04]
push eax
mov byte [ebp - 4], 8
call fcn.00404d02
mov ecx, dword [ebp]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.004010dc
push str.exename
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.0040a70f
lea ecx, [esi + 0x48ec08]
push eax
mov byte [ebp - 4], 9
call fcn.00404d02
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.004010dc
push str.event
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0040a70f
lea ecx, [esi + 0x48ec0c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00404d02
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.004010dc
push 0x474964
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
lea eax, [ebp + 4]
push eax
mov ecx, ebx
call fcn.0040a70f
lea ecx, [esi + 0x48ec14]
push eax
mov byte [ebp - 4], 0xb
call fcn.00404d02
mov ecx, dword [ebp + 4]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.004010dc
push 0x474954
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
lea eax, [ebp + 0x14]
push eax
mov ecx, ebx
call fcn.0040a70f
lea ecx, [esi + 0x48ec18]
push eax
mov byte [ebp - 4], 0xc
call fcn.00404d02
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.004010dc
push str.post_install_check
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
lea eax, [ebp + 0x1c]
push eax
mov ecx, ebx
call fcn.0040a70f
lea eax, [ebp + 0x1c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.004079ce
lea eax, [ebp + 0x1c]
lea ecx, [esi + 0x48ec1c]
push eax
call fcn.00404d02
push str.switches
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
lea eax, [ebp + 0x24]
push eax
mov ecx, ebx
call fcn.0040a70f
lea eax, [ebp + 0x24]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.0040791f
lea eax, [ebp + 0x24]
push eax
mov ecx, ebx
call fcn.004079ce
lea eax, [ebp + 0x24]
lea ecx, [esi + 0x48ec10]
push eax
call fcn.00404d02
mov ebx, str.post_install_check_v2
push ebx
lea ecx, [ebp - 0x8c]
call fcn.00408623
or dword [ebp + 0x38], 4
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xf
call fcn.00403b17
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405bd8
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.00402141
test al, al
jne 0x40bcdb
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00408623
or dword [ebp + 0x38], 8
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0x10
call fcn.0040a673
mov ecx, dword [eax]
call fcn.00411846
test al, al
je 0x40bcdb
mov bl, 1
jmp 0x40bcdd
xor bl, bl
test byte [ebp + 0x38], 8
je 0x40bcf5
and dword [ebp + 0x38], 0xfffffff7
push 0
push edi
lea ecx, [ebp - 0xd0]
call fcn.0040402c
test byte [ebp + 0x38], 4
mov dword [ebp - 4], 0xe
je 0x40bd14
and dword [ebp + 0x38], 0xfffffffb
push 0
push edi
lea ecx, [ebp - 0x8c]
call fcn.0040402c
test bl, bl
je 0x40be2f
push str.post_install_check_v2
lea ecx, [ebp - 0x8c]
call fcn.00408623
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.0040a673
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [eax]
call fcn.0041205b
push 0
push edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x13
call fcn.0040402c
push 0
lea ecx, [ebp - 0x6c]
call fcn.004020ab
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, dword [eax]
call fcn.004121e0
push 0x4748e4
sub esp, 0x20
lea eax, [ebp - 0xb4]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x14
call fcn.0040a42e
mov ecx, dword [ebp + 0x34]
lea eax, [ebp + 0x20]
push eax
call fcn.0040a70f
mov ecx, dword [ebp + 0x34]
lea eax, [ebp + 0x20]
push eax
mov byte [ebp - 4], 0x15
call fcn.004079ce
push str.type
sub esp, 0x20
lea eax, [ebp - 0xb4]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
mov ecx, dword [ebp + 0x34]
lea eax, [ebp + 0xc]
push eax
call fcn.0040a70f
lea ecx, [esi + 0x48ec20]
push eax
mov byte [ebp - 4], 0x16
call fcn.00404d02
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x15
call fcn.004010dc
lea eax, [ebp + 0x20]
lea ecx, [esi + 0x48ec24]
push eax
call fcn.00404d02
mov ecx, dword [ebp + 0x20]
add ecx, 0xfffffff0
call fcn.004010dc
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x13
call fcn.00409ef6
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.00404077
push dword [ebp - 0x6c]
call fcn.0042c094
pop ecx
push str.execute
sub esp, 0x20
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.0040a42e
mov ecx, dword [ebp + 0x34]
lea eax, [ebp + 0x18]
push eax
call fcn.0040a70f
mov ebx, 0x473e70
push ebx
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x17
call fcn.004028fc
lea ecx, [esi + 0x48ec28]
test eax, eax
jne 0x40be70
push ebx
jmp 0x40be75
push 0x473e78
call fcn.004015c1
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.004010dc
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.004010dc
mov ecx, dword [ebp + 0x1c]
add ecx, 0xfffffff0
call fcn.004010dc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.00409ef6
inc dword [ebp + 0x30]
jmp 0x40ba4f
call fcn.00404077
push dword [ebp - 0x50]
call fcn.0042c094
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x44]
call fcn.00409ef6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x3c
leave
ret 0x24