Function at 0x4012f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x144
cmp dword [0x408320], 0
jne 0x401332
call sub.KERNEL32.dll_GetUserDefaultLCID
mov dword [esp + 0xc], 4
lea edx, [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 3
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocaleInfoA
sub esp, 0x10
lea eax, [ebp - 0xc]
mov dword [0x408320], eax
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov eax, dword [0x4082e0]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
lea eax, [ebp - 0x128]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sub.msvcrt.dll_strrchr
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x401391
mov eax, dword [0x408320]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], section..rdata
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x4013bb
jmp 0x40158a
mov eax, dword [ebp - 0x130]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_fgets
test eax, eax
je 0x40157c
cmp byte [ebp - 0x128], 0x23
jne 0x4013ee
jmp 0x4013bb
lea ebx, [ebp - 0x128]
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x128]
cmp eax, dword [ebp - 0x134]
je 0x40143d
mov eax, dword [ebp - 0x134]
dec eax
cmp byte [eax], 0xd
je 0x401433
mov eax, dword [ebp - 0x134]
dec eax
cmp byte [eax], 0xa
je 0x401433
jmp 0x40143d
lea eax, [ebp - 0x134]
dec dword [eax]
jmp 0x40140b
lea eax, [ebp - 0x128]
cmp eax, dword [ebp - 0x134]
jne 0x401450
jmp 0x4013bb
mov eax, dword [ebp - 0x134]
mov byte [eax], 0
lea eax, [ebp - 0x128]
mov dword [esp + 4], 0x3d
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x401483
jmp 0x4013bb
mov eax, dword [ebp - 0x134]
mov byte [eax], 0
lea eax, [ebp - 0x134]
inc dword [eax]
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0x1f3
jle 0x401555
cmp dword [ebp - 0x138], 0x1fd
jg 0x401555
lea eax, [ebp - 0x138]
sub dword [eax], 0x1f4
mov eax, dword [ebp - 0x138]
cmp dword [eax*4 + 0x4082f0], 0
je 0x4014f9
mov eax, dword [ebp - 0x138]
mov eax, dword [eax*4 + 0x4082f0]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov ebx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
inc eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebx*4 + 0x4082f0], eax
mov eax, dword [ebp - 0x138]
cmp dword [eax*4 + 0x4082f0], 0
je 0x4013bb
mov eax, dword [ebp - 0x134]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x138]
mov eax, dword [eax*4 + 0x4082f0]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
jmp 0x4013bb
mov eax, dword [ebp - 0x134]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_SetDlgItemTextA
sub esp, 0xc
jmp 0x4013bb
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov ebx, dword [ebp - 4]
leave
ret