Function at 0x4786aa
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov ecx, dword [ecx + 0x54]
push ebx
push esi
push edi
xor esi, esi
mov edi, edx
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
call fcn.00458bfe
mov ebx, eax
test ebx, ebx
je 0x478a61
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0xbc]
push 0x4a02dc
mov ecx, ebx
call fcn.0045d768
lea ecx, [edi + 0xa4]
mov dword [ebp - 4], ecx
test eax, eax
je 0x478704
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
push 0x4a02f0
mov ecx, ebx
call fcn.0045d768
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4789cd
lea eax, [edi + 0x2a4]
push str.default
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4788ec
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043baa0
add eax, 0x10
add edi, 0x54
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0044bc8f
sub eax, 6
je 0x4787f4
sub eax, 6
je 0x4787db
sub eax, 1
je 0x4787c2
dec eax
sub eax, 1
jne 0x47883e
push 0x1e
push str.Critical_Update
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x478789
push 0x46
jmp 0x47883d
push 0x1e
push str.Security_Update
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x4787a5
push 0x48
jmp 0x47883d
push 0x1e
push str.Software_Update
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x47883e
push 0x4a
jmp 0x47883d
push 0x1a
push str.Update_Rollup
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x47883e
push 0x4c
jmp 0x47883d
push 0x18
push str.Service_Pack
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x47883e
push 0x49
jmp 0x47883d
push 0xc
push str.Hotfix
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x47880d
push 0x47
jmp 0x47883d
push 0xc
push 0x4a030c
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x478826
push 0x4b
jmp 0x47883d
push 0xc
push str.Driver
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x47883e
push 0x4d
pop esi
call fcn.0043c5cd
push eax
lea ecx, [ebp - 8]
call fcn.0043ac50
test esi, esi
je 0x478879
push esi
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.0043b406
test eax, eax
je 0x478879
mov edi, dword [ebp - 8]
lea ecx, [edi - 0x10]
call fcn.0043baa0
mov dword [ebp + 8], 1
lea esi, [eax + 0x10]
mov ecx, esi
jmp 0x478895
push edi
lea ecx, [ebp - 0x14]
call fcn.0043b487
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 2
mov ecx, dword [eax]
xor eax, eax
mov dword [ebp + 8], eax
pop eax
mov dword [ebp - 0x10], eax
push ecx
push 0x492054
lea ecx, [ebp - 4]
call fcn.00431141
cmp dword [ebp - 0x10], 0
je 0x4788b4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp dword [ebp + 8], 0
je 0x4788c2
lea ecx, [esi - 0x10]
call fcn.0043c924
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, 0x1cbc
push eax
push 0x4a03c4
call fcn.00431141
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [edi - 0x10]
jmp 0x4789bd
lea eax, [edi + 0x8a4]
push str.Microsoft_Windows_Client_LanguagePack_Package
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x478942
push str.Microsoft_Windows_Client_Refresh_LanguagePack_Package
lea eax, [edi + 0x8a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x478942
push str.Microsoft_Windows_WinPE_LanguagePack_Package
lea eax, [edi + 0x8a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x478942
mov ecx, dword [ebp + 0x10]
lea edx, [edi + 0x2a4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
jmp 0x4789cd
push 0x7e
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
call esi
push 0x7e
mov edi, eax
push edi
push dword [ebp - 4]
call esi
add eax, 2
lea ecx, [ebp + 8]
sub edi, eax
sar edi, 1
push edi
push eax
call fcn.0043a92d
mov esi, dword [ebp + 8]
xor eax, eax
push 0x100
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push str.Windows__s
mov edi, dword [edi]
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [ebp + 8]
push eax
call fcn.00449eea
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push dword [eax]
call dword [edi + 0x2c]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
mov edi, dword [ebp - 0xc]
push 0x4a03ec
mov ecx, ebx
call fcn.0045d768
test eax, eax
je 0x4789e8
mov edx, dword [eax]
lea ecx, [edi + 0x54]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
push 0x4a36a4
mov ecx, ebx
call fcn.0045d768
mov esi, eax
test esi, esi
je 0x478a35
xor eax, eax
mov dword [ebp + 0x10], 3
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [edi + 0x1cb4]
push eax
call dword [sym.imp.SHLWAPI.dll_SHFormatDateTimeW]
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
push 0x4a2e88
mov ecx, ebx
call fcn.0045d768
mov dword [ebp + 0x10], eax
test eax, eax
je 0x478a5f
mov ecx, dword [edi]
mov esi, dword [eax]
push dword [ecx*4 + 0x48d218]
call sym.Dismx86.exe_DismMultiLanguage
mov ecx, dword [ebp + 0x10]
push eax
call dword [esi + 0x2c]
mov esi, ebx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0043c924
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc