Function at 0x40bcc0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x45d3c5
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x498f90]
xor eax, esp
mov dword [esp + 0x3cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498f90]
xor eax, esp
push eax
lea eax, [esp + 0x3e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3f4]
xor ebx, ebx
mov dword [esp + 0x18], ebx
push ebx
mov esi, ecx
mov edi, 0xf
push 0x462f68
lea ecx, [esp + 0x178]
mov dword [esp + 0x28], eax
mov dword [esp + 0x190], edi
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
call fcn.00402040
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x1dc]
push ecx
mov ebp, 1
lea ecx, [esp + 0x17c]
mov dword [esp + 0x3f8], ebp
call fcn.00401d70
mov edx, dword [esp + 0x184]
push ebx
push 0x462f68
push edx
push ebx
lea ecx, [esp + 0x180]
call fcn.00401650
test eax, eax
jne 0x40bd8e
push 2
push 0x463c08
lea ecx, [esp + 0x178]
call fcn.00402040
push 0x11
push str.Registration.txt
lea ecx, [esp + 0x178]
call fcn.00401f50
mov dword [esp + 0x1a4], edi
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x190], 0
push ebp
lea ecx, [esp + 0xe4]
mov byte [esp + 0x3f0], 2
call fcn.0040aa30
mov eax, dword [esp + 0x174]
mov edi, 0x10
cmp dword [esp + 0x188], edi
mov byte [esp + 0x3ec], 3
jae 0x40bdf0
lea eax, [esp + 0x174]
push 0x40
push ebp
push eax
lea ecx, [esp + 0xf8]
call fcn.0040b280
test eax, eax
jne 0x40be2e
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0xe8]
lea ecx, [esp + ecx + 0xe0]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40be27
or eax, 4
push ebx
push eax
call fcn.00407160
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 4]
mov ecx, dword [esp + ecx + 0xe8]
add eax, 4
cmp ecx, ebx
jne 0x40bf2a
test cl, 1
jne 0x40bed0
mov ecx, dword [eax]
push 0xa
lea ecx, [esp + ecx + 0xe4]
call fcn.0040a180
lea edx, [esp + 0x1e0]
lea ecx, [esp + 0xe0]
push eax
push 0x1f4
push edx
call fcn.0040b0d0
lea eax, [esp + 0x1e0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40be87
sub eax, edx
push eax
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0x194]
call fcn.00401f50
push ebp
push 0x463bf0
lea ecx, [esp + 0x194]
call fcn.00401f50
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 4]
add eax, 4
test byte [esp + ecx + 0xe8], 1
je 0x40be53
lea ecx, [esp + 0xec]
call fcn.004069a0
test eax, eax
jne 0x40bf0a
mov edx, dword [esp + 0xe0]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0xe8]
lea ecx, [esp + ecx + 0xe0]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40bf03
or eax, 4
push ebx
push eax
call fcn.00407160
cmp dword [esp + 0x188], edi
mov eax, dword [esp + 0x174]
jae 0x40bf21
lea eax, [esp + 0x174]
push eax
call fcn.004411e8
add esp, 4
lea ecx, [esp + 0x13c]
mov byte [esp + 0x3ec], 2
call fcn.0040a0f0
lea eax, [esp + 0x13c]
mov edi, vtable.std::ios_base.0
push eax
mov dword [esp + 0x140], edi
call fcn.0045a26a
add esp, 4
push ebp
lea ecx, [esp + 0x34]
call fcn.0040aa30
cmp dword [esp + 0x188], 0x10
mov eax, dword [esp + 0x174]
mov byte [esp + 0x3ec], 4
jae 0x40bf84
lea eax, [esp + 0x174]
push 0x40
push 0x12
push eax
lea ecx, [esp + 0x48]
call fcn.0040b280
test eax, eax
jne 0x40bfb7
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x38]
lea ecx, [esp + ecx + 0x30]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40bfb0
or eax, 4
push ebx
push eax
call fcn.00407160
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
cmp dword [esp + eax + 0x38], ebx
jne 0x40c67a
push 2
push 0x463bec
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x1e4], 0xf
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], 0
call fcn.00402040
lea ebp, [esi + 0xe0]
push ebp
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1f]
mov byte [esp + 0x3f4], 5
call fcn.004062d0
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x1b]
call fcn.004043e0
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax]
je 0x40c044
lea ecx, [esp + 0x24]
call fcn.00405570
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1d0]
call fcn.00401d70
push 0xffffffffffffffff
lea eax, [esi + 0x150]
push ebx
push eax
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x1cc], 0xf
mov dword [esp + 0x1c8], ebx
mov byte [esp + 0x1b8], 0
call fcn.00401d70
mov eax, str.Other...__
mov byte [esp + 0x3ec], 6
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c084
sub eax, ecx
push eax
push ebx
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x1b4]
call fcn.004063c0
mov edx, str.Other...__
mov byte [esp + 0x3ec], 7
lea edi, [edx + 1]
mov cl, byte [edx]
add edx, 1
test cl, cl
jne 0x40c0b5
mov ecx, dword [eax + 0x14]
sub edx, edi
push edx
push str.Other...__
push ecx
push ebx
mov ecx, eax
call fcn.00401650
test eax, eax
sete bl
cmp dword [esp + 0xdc], 0x10
mov byte [esp + 0x3ec], 6
jb 0x40c0f9
mov edx, dword [esp + 0xc8]
push edx
call fcn.0042f7d6
add esp, 4
test bl, bl
je 0x40c165
mov eax, str.Other...__
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c105
sub eax, edx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x1b4]
call fcn.004063c0
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x3f8], 8
call fcn.00401d70
cmp dword [esp + 0xdc], 0x10
mov byte [esp + 0x3ec], 6
jb 0x40c167
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.0042f7d6
add esp, 4
jmp 0x40c167
xor edi, edi
push edi
call fcn.0043f4c4
add esp, 4
mov dword [esp + 0x2c], edx
push 0x463be8
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
call fcn.00409610
mov eax, dword [esp + 0x1c]
push 0x463bf0
push eax
lea ecx, [esp + 0x40]
push str.Created_by_IAR_Registrator_
push ecx
mov byte [esp + 0x3fc], 9
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b6e0
lea edx, [esp + 0x40]
push str._________________________________________________________n
push edx
call fcn.0040b6e0
add esp, 0x10
push 0x463bf0
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x40]
push str.Name:
push ecx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea edx, [esi + 0x38]
push edx
lea eax, [esp + 0x40]
push str.Company:
push eax
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea ecx, [esi + 0x54]
push ecx
lea edx, [esp + 0x40]
push str.Department:
push edx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x40]
push str.Address:
push ecx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea edx, [esi + 0xc4]
push edx
lea eax, [esp + 0x40]
push str.City:
push eax
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea ecx, [esi + 0x8c]
push ecx
lea edx, [esp + 0x40]
push str.Zip__or_Postal_code:
push edx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
push ebp
lea eax, [esp + 0x40]
push str.Country:
push eax
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x40]
push str.Country_code:
push edx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea eax, [esi + 0xfc]
push eax
lea ecx, [esp + 0x40]
push str.Phone:
push ecx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea edx, [esi + 0x134]
push edx
lea eax, [esp + 0x40]
push str.Email:
push eax
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea ecx, [esp + 0x1ac]
push ecx
lea edx, [esp + 0x40]
push str.Distributor:
push edx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea eax, [esi + 0x16c]
push eax
lea ecx, [esp + 0x40]
push str.Product_name:
push ecx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
lea edx, [esi + 0x188]
push edx
lea eax, [esp + 0x40]
push str.Product_version:
push eax
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
push esi
lea ecx, [esp + 0x40]
push str.License_number:
push ecx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
add esp, 8
push 0x463bf0
add esi, 0x1a4
push esi
lea edx, [esp + 0x40]
push str.HostID:
push edx
call fcn.0040b6e0
add esp, 8
push eax
call fcn.0040b8f0
add esp, 8
push eax
call fcn.0040b6e0
lea eax, [esp + 0x40]
push str._________________________________________________________n
push eax
call fcn.0040b6e0
push 0x463bf0
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040b6e0
lea edx, [esp + 0x50]
push str.Please_send_this_file_to__register_iar.com__if_the_normal_n
push edx
call fcn.0040b6e0
lea eax, [esp + 0x58]
push str.registration_procedure_fails._Thank_you._n
push eax
call fcn.0040b6e0
add esp, 0x28
cmp dword [esp + 0x1a0], 0xa
jbe 0x40c512
lea ecx, [esp + 0x38]
push 0x463bf0
push ecx
call fcn.0040b6e0
lea edx, [esp + 0x40]
push str._________________________________________________________n
push edx
call fcn.0040b6e0
lea eax, [esp + 0x48]
push 0x463bf0
push eax
call fcn.0040b6e0
lea ecx, [esp + 0x1a4]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0040b8f0
add esp, 0x20
lea ecx, [esp + 0x3c]
call fcn.004069a0
test eax, eax
jne 0x40c540
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x38]
lea ecx, [esp + ecx + 0x30]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x40c539
or eax, 4
push edi
push eax
call fcn.00407160
cmp dword [esp + 0x188], 0x10
mov eax, dword [esp + 0x174]
jae 0x40c558
lea eax, [esp + 0x174]
mov ebx, dword [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00409200
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x18], 1
mov byte [esp + 0x3ec], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, 0x10
cmp dword [esp + 0x1c0], ebp
jb 0x40c5b2
mov ecx, dword [esp + 0x1ac]
push ecx
call fcn.0042f7d6
add esp, 4
cmp dword [esp + 0x1dc], ebp
mov esi, 0xf
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1bc], edi
mov byte [esp + 0x1ac], 0
jb 0x40c5e6
mov edx, dword [esp + 0x1c8]
push edx
call fcn.0042f7d6
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1dc], esi
mov dword [esp + 0x1d8], edi
mov byte [esp + 0x1c8], 0
mov byte [esp + 0x3ec], 2
call fcn.0040a0f0
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0045a26a
add esp, 4
cmp dword [esp + 0x1a4], ebp
jb 0x40c644
mov ecx, dword [esp + 0x190]
push ecx
call fcn.0042f7d6
add esp, 4
cmp dword [esp + 0x188], ebp
mov dword [esp + 0x1a4], esi
mov dword [esp + 0x1a0], edi
mov byte [esp + 0x190], 0
jb 0x40c673
mov edx, dword [esp + 0x174]
push edx
call fcn.0042f7d6
add esp, 4
mov eax, ebx
jmp 0x40c70c
mov esi, dword [esp + 0x20]
push str._Failed_to_save_registration_information_
mov ecx, esi
call fcn.00409200
lea ecx, [esp + 0x8c]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x3ec], 2
call fcn.0040a0f0
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], edi
call fcn.0045a26a
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x1a4], edi
jb 0x40c6d7
mov ecx, dword [esp + 0x190]
push ecx
call fcn.0042f7d6
add esp, 4
cmp dword [esp + 0x188], edi
mov dword [esp + 0x1a4], 0xf
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x190], 0
jb 0x40c70a
mov edx, dword [esp + 0x174]
push edx
call fcn.0042f7d6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3cc]
xor ecx, esp
call fcn.0043ec69
add esp, 0x3dc
ret 4