Function at 0x10039330
Capabilities:
Get geographical location
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ecfcd
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x101d6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
call fcn.10017840
cmp eax, 0xd100002
jne 0x100396a1
push str..locale.ini
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x101281dc
push str.TEXT_LANGUAGE
push str.OPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x290]
call fcn.1001e8a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x2d8]
push eax
call fcn.10037970
add esp, 8
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
push eax
call fcn.10038b70
mov ecx, eax
call fcn.10025630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
call fcn.10019750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.10019750
call fcn.10038b70
mov ecx, eax
call fcn.100194d0
movzx ecx, al
test ecx, ecx
jne 0x10039611
push 0
push str.CountryNames.txt
lea ecx, [ebp - 0x2c0]
call fcn.100265e0
mov dword [ebp - 4], 2
push 0
call fcn.10038b70
push eax
lea ecx, [ebp - 0x2a8]
call fcn.10026300
mov byte [ebp - 4], 3
push 0
push 0x10128218
lea ecx, [ebp - 0x308]
call fcn.100265e0
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
lea edx, [ebp - 0x2f0]
push edx
call fcn.1002fa60
add esp, 0xc
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
lea eax, [ebp - 0x24c]
push eax
call fcn.1002fa60
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2f0]
call fcn.10018440
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x308]
call fcn.10018440
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a8]
call fcn.10018440
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c0]
call fcn.10018440
lea ecx, [ebp - 0x24c]
push ecx
call fcn.10018bf0
add esp, 4
movzx edx, al
test edx, edx
je 0x100395ff
push 0x1c
lea ecx, [ebp - 0x234]
call fcn.10016920
push 1
push 1
push 0xe
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.1003e450
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x234]
call fcn.1003e590
movzx ecx, al
test ecx, ecx
je 0x100395f0
mov byte [0x101e927a], 1
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x234]
call fcn.1003e5d0
movzx edx, al
test edx, edx
jne 0x100395f0
call fcn.10038bb0
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x270]
push ecx
mov ecx, dword [ebp - 0x274]
call fcn.100396c0
mov dword [ebp - 0x278], eax
mov edx, dword [ebp - 0x250]
add edx, 1
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x234]
call fcn.100397b0
cmp dword [ebp - 0x250], 0xcf
jne 0x100395ee
jmp 0x100395f0
jmp 0x1003957e
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x234]
call fcn.1003e510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.10018440
push 0x10038ee0
push 0x4bf101
call fcn.10017450
add esp, 8
push fcn.10038e40
push 0x4bf0c9
call fcn.10017450
add esp, 8
push fcn.10038e40
push 0x4bf0e0
call fcn.10017450
add esp, 8
push fcn.10038e40
push 0x4bf0f7
call fcn.10017450
add esp, 8
push 0x10038f20
push 0x4dcee0
call fcn.1001df40
add esp, 8
push 0x10038fd0
push 0x5100ba
call fcn.10017450
add esp, 8
push 0x100390f0
push 0x510141
call fcn.10017450
add esp, 8
push 0x10039210
push 0x548f5b
call fcn.10017450
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c563c
mov esp, ebp
pop ebp
ret