Function at 0x10002946
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4c0]
sub esp, 0x540
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x4bc], eax
mov ecx, dword [ebp + 0x4d0]
mov eax, dword [ebp + 0x4c8]
push ebx
push esi
push edi
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x4d8]
push ecx
push eax
mov dword [ebp - 0x70], eax
mov esi, 0x104
lea eax, [ebp + 0x3b8]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x5c], ebx
call sym.hccutils.DLL_GetMyRegKey
push dword [ebp + 0x4d4]
mov edi, eax
push ebx
push dword [ebp - 0x60]
mov dword [ebp - 0x64], ebx
call fcn.10008450
push esi
lea eax, [ebp + 0xac]
push ebx
push eax
call fcn.10008450
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.10008450
push esi
lea eax, [ebp + 0x1b0]
push ebx
push eax
call fcn.10008450
add esp, 0x40
dec edi
cmp edi, 0x102
ja 0x10002b96
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
push 3
push eax
mov dword [ebp - 0x7c], eax
call edi
mov dword [ebp - 0x78], eax
inc eax
push eax
call fcn.100066fe
pop ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
push eax
push 3
push dword [ebp - 0x7c]
call edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [ebp - 0x78], ebx
je 0x10002b07
lea eax, [ebp + 0xac]
push 0x10011404
push eax
call fcn.100082c0
push dword [ebp - 0x80]
lea eax, [ebp + 0xac]
push eax
call fcn.100082c0
lea eax, [ebp + 0x3b8]
push str._resources
push eax
call fcn.100082c0
lea eax, [ebp + 0x3b8]
push eax
lea eax, [ebp + 0x1b0]
push eax
call fcn.100082b0
lea eax, [ebp + 0xac]
push eax
lea eax, [ebp + 0x3b8]
push eax
call fcn.100082c0
add esp, 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x3b8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x5c], ebx
je 0x10002ae4
push esi
lea eax, [ebp + 0x2b4]
push ebx
push eax
call fcn.10008450
mov eax, dword [ebp + 0x4d4]
push dword [ebp + 0x4cc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x2b4]
push 0x1001149c
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp + 0x2b4]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10002af9
lea eax, [ebp + 0x1b0]
push eax
lea eax, [ebp + 0x3b8]
push eax
call fcn.100082b0
pop ecx
pop ecx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x5c], ebx
jmp 0x10002b1a
lea eax, [ebp + 0x3b8]
push str._resources
push eax
call fcn.100082c0
pop ecx
pop ecx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x3b8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x5c], ebx
je 0x10002b96
push dword [ebp + 0x4cc]
lea eax, [ebp + 0x2b4]
push 0x1001149c
push eax
call edi
mov eax, dword [ebp + 0x4d4]
add esp, 0xc
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp + 0x2b4]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
cmp eax, ebx
jne 0x10002b7d
cmp dword [ebp - 0x74], ecx
jne 0x10002b8b
cmp eax, 0xea
je 0x10002b8b
cmp eax, ebx
je 0x10002b8b
mov dword [ebp - 0x64], ecx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10002b9d
mov dword [ebp - 0x64], 1
cmp dword [ebp - 0x64], ebx
je 0x10002c16
push dword [ebp + 0x4d4]
mov edi, dword [ebp - 0x60]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
push dword [ebp + 0x4cc]
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x10002c16
push dword [ebp - 0x68]
push dword [ebp - 0x70]
call sym.hccutils.DLL_FindResources
pop ecx
pop ecx
push dword [ebp + 0x4d4]
push edi
push dword [ebp + 0x4cc]
push eax
call esi
test eax, eax
jne 0x10002c16
push dword [ebp - 0x68]
push dword [ebp - 0x70]
call sym.hccutils.DLL_FindStaticResources
pop ecx
pop ecx
push dword [ebp + 0x4d4]
push edi
push dword [ebp + 0x4cc]
push eax
call esi
test eax, eax
jne 0x10002c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Cant_find_requested_string.
push edi
call fcn.100082b0
pop ecx
pop ecx
push dword [ebp - 0x60]
call fcn.10008140
pop ecx
mov ecx, dword [ebp + 0x4bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100083a8
add ebp, 0x4c0
leave
ret