Function at 0x42d091
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x441040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00422f5a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00422f5a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42d108
cmp word [ecx], dx
je 0x42d108
mov eax, dword [0x4395ac]
push edi
dec eax
push eax
push 0x439498
call fcn.0042d030
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42d17b
cmp word [eax], dx
je 0x42d17b
mov eax, dword [edi]
test eax, eax
je 0x42d12c
cmp word [eax], dx
je 0x42d12c
lea eax, [ebp - 0x10]
push eax
call fcn.0042ca13
jmp 0x42d135
lea eax, [ebp - 0x10]
push eax
call fcn.0042caae
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42d1a5
mov eax, dword [0x439494]
push dword [ebp - 0x14]
dec eax
push eax
push 0x439188
call fcn.0042d030
add esp, 0xc
test al, al
je 0x42d1a5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42d170
cmp word [eax], di
je 0x42d170
lea eax, [ebp - 0x10]
push eax
call fcn.0042ca13
pop ecx
jmp 0x42d1a7
lea eax, [ebp - 0x10]
push eax
call fcn.0042caae
jmp 0x42d16d
mov eax, dword [edi]
test eax, eax
je 0x42d192
cmp word [eax], dx
je 0x42d192
lea eax, [ebp - 0x10]
push eax
call fcn.0042c9c8
pop ecx
jmp 0x42d1a5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42d270
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042ceb5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42d270
movzx ecx, si
push ecx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsValidCodePage]
test eax, eax
je 0x42d270
push 1
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsValidLocale]
test eax, eax
je 0x42d270
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42d1fd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00422ac3
test ebx, ebx
je 0x42d26b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00422ac3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x42d270
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x42d270
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004301a7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42d272
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413da9
leave
ret