Function at 0x4051c0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x44704d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x45b8b4]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
lea esi, [esp + 0x14]
call fcn.00405820
lea ecx, [edi + 0xd4]
push eax
mov dword [esp + 0x14c], 0
call fcn.00403ee0
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405245
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.00407bc0
lea ebx, [edi + 0xd8]
push 0x45f8b4
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00403ee0
lea ecx, [edi + 0xdc]
push ebx
call fcn.00403ee0
push 0xff
lea ecx, [esp + 0x40]
push ecx
push 3
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x3c]
push edx
lea eax, [edi + 0xf0]
push 0x44e658
push eax
call fcn.00403d50
add esp, 0xc
mov dword [esp + 0x24], vtable.CRegistryEx.0
call fcn.0041623a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4052c0
push 0x80004005
call fcn.00403720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x148], 1
mov eax, dword [ebx]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00403f60
add esp, 4
lea ecx, [esp + 0x1c]
add eax, 0x10
push ecx
lea ecx, [esp + 0x30]
mov dword [esi], eax
call fcn.0040bba0
lea ecx, [edi + 0xe4]
push eax
mov byte [esp + 0x14c], 2
call fcn.00403ee0
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405349
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x44eac8
call fcn.004039f0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040bcf0
lea ebp, [edi + 0xe8]
push eax
mov ecx, ebp
mov byte [esp + 0x14c], 3
call fcn.00403ee0
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040be40
lea ecx, [edi + 0xec]
push eax
mov byte [esp + 0x14c], 4
call fcn.00403ee0
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0041623a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40540c
push 0x80004005
call fcn.00403720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0
push ecx
mov ecx, esp
mov byte [esp + 0x150], 5
mov dword [esp + 0x24], esp
push str.SamsungPrinter_Update.log
push ebp
push ecx
call fcn.00404530
mov esi, dword [edi + 0xfc]
add esp, 0xc
call fcn.004040b0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SP_UPDATE_LOG_FILE
call fcn.004039f0
mov ecx, dword [edi + 0xfc]
call fcn.00404170
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x44ec5c
call fcn.004039f0
mov ecx, dword [edi + 0xfc]
call fcn.00404170
mov edx, dword [edi + 0xec]
push edx
lea eax, [esp + 0x18]
push str.User_Key___s
push eax
call fcn.00403d50
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004075b0
lea esi, [edi + 0xe0]
push eax
mov ecx, esi
mov byte [esp + 0x14c], 6
call fcn.00403ee0
mov byte [esp + 0x148], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405508
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x18]
push str.OS___s
push edx
call fcn.00403d50
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov eax, dword [edi + 0xf0]
push eax
lea ecx, [esp + 0x18]
push str.Country___s
push ecx
call fcn.00403d50
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x18]
push str.Update_Version___s
push eax
call fcn.00403d50
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov ecx, dword [edi + 0xd4]
push ecx
lea edx, [esp + 0x18]
push str.Temp_folder___s
push edx
call fcn.00403d50
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov eax, dword [edi + 0xe4]
push eax
lea ecx, [esp + 0x18]
push str.Connector_Version___s
push ecx
call fcn.00403d50
add esp, 8
mov dword [esp + 0x1c], esp
mov esi, esp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00403f60
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov edx, dword [edi + 0xdc]
push edx
lea eax, [esp + 0x18]
push str.Compare___Version___s
push eax
call fcn.00403d50
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov ecx, dword [ebp]
push ecx
lea edx, [esp + 0x18]
push str.Run_folder___s
push edx
call fcn.00403d50
mov esi, dword [esp + 0x20]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push esi
call fcn.00403f60
add eax, 0x10
mov dword [ebp], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x44ec5c
call fcn.004039f0
mov ecx, dword [edi + 0xfc]
call fcn.00404170
mov eax, dword [edi + 0xfc]
mov byte [eax + 8], 1
mov eax, dword [esp + 0x20]
cmp eax, 6
ja case.default.0x4056e6
jmp dword [eax*4 + 0x405800]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Infomation_file_found.
jmp 0x40575b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__Infomation_file_not_found.
jmp 0x40575b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__Infomation_file_:_Key_not_found.
jmp 0x40575b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__Infomation_file_:_Host_not_found.
jmp 0x40575b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__Infomation_file_:_Url_not_found.
jmp 0x40575b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__Infomation_file_:_Version_not_found.
jmp 0x40575b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__Infomation_file_:_Not_well_form.
jmp 0x40575b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__Infomation_file_:_Unknown.
call fcn.004039f0
mov ecx, dword [edi + 0xfc]
call fcn.00404170
mov byte [esp + 0x148], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40578c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x24], vtable.CRegistryEx.0
je 0x4057b6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042e419
add esp, 0x13c
ret