Function at 0x408ffa
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48fbcc]
test eax, eax
jne 0x4092a0
push ebx
push esi
push edi
mov dword [ebp - 0x30], 0x363339
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x18
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
or edi, 0xffffffff
push edi
push edi
push 0x47b452
mov ecx, 0x48fbcc
call fcn.00409f00
and dword [0x48fbd0], 0
push 0x105
lea ecx, [ebp - 4]
call fcn.0042aed6
mov eax, dword [ebp - 4]
and word [eax], 0
push 0x104
push eax
push dword [0x48fde8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push 0x47b450
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.0042605a
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042af26
lea ecx, [ebp - 0xc]
call fcn.0042602e
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042605a
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042af26
lea ecx, [ebp - 0xc]
call fcn.0042602e
push edi
mov esi, str..lang
push esi
lea ecx, [ebp - 0xc]
call fcn.0042605a
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042af26
lea ecx, [ebp - 0xc]
call fcn.0042602e
lea ecx, [ebp - 0x18]
call fcn.0042adba
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call fcn.0040fa1c
add esp, 0xc
cmp eax, 0xfffffffe
jne 0x409138
mov eax, dword [ebp - 4]
and word [eax + ebx*2], 0
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.0042605a
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042af26
lea ecx, [ebp - 0xc]
call fcn.0042602e
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call fcn.0040fa1c
add esp, 0xc
cmp eax, 1
jge 0x409144
xor esi, esi
jmp 0x40928b
mov edi, dword [ebp - 0x18]
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
push 6
push edi
push 0x47b440
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
call fcn.00426f79
add esp, 0xc
test al, al
push 2
pop ebx
je 0x4091a2
lea eax, [ebp - 8]
call fcn.00403aff
mov edi, dword [ebp - 8]
test edi, edi
je 0x4091a2
xor eax, eax
mov ax, word [edi]
push eax
call fcn.00402a5b
add esp, 4
test al, al
je 0x4091a2
xor eax, eax
add edi, ebx
mov ax, word [edi]
push eax
call fcn.00402a5b
add esp, 4
test al, al
jne 0x40918b
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov esi, edi
jmp 0x409260
push 5
push edi
push str.str:
call fcn.00426f79
add esp, 0xc
test al, al
je 0x40926a
lea eax, [ebp - 8]
call fcn.00403aff
lea eax, [edi + 0xa]
mov cx, word [eax]
cmp cx, 0x30
mov edi, dword [ebp - 8]
jb 0x409233
cmp cx, 0x39
ja 0x409233
jmp 0x409229
mov cx, word [eax]
cmp cx, 0x5c
jne 0x409222
lea ecx, [eax + 2]
mov dx, word [ecx]
cmp dx, 0x72
jne 0x409204
mov word [esi], 0xd
add esi, ebx
add eax, 4
jmp 0x409229
cmp dx, 0x6e
jne 0x409211
mov word [esi], 0xa
jmp 0x4091fd
mov word [esi], 0x5c
add esi, ebx
cmp dx, 0x5c
je 0x4091ff
mov eax, ecx
jmp 0x409229
mov word [esi], cx
add esi, ebx
add eax, ebx
cmp eax, edi
jb 0x4091e3
and word [esi], 0
add esi, ebx
xor eax, eax
mov ax, word [edi]
push eax
call fcn.00402a5b
add esp, 4
test al, al
je 0x409260
and word [edi], 0
xor eax, eax
add edi, ebx
mov ax, word [edi]
push eax
call fcn.00402a5b
add esp, 4
test al, al
jne 0x409245
mov dword [ebp - 8], edi
cmp word [edi], 0
jne 0x4091ac
sub esi, dword [ebp - 0xc]
mov ecx, 0x48fbcc
sar esi, 1
push esi
push dword [ebp - 0xc]
call fcn.00409fd6
lea eax, [esi + esi]
mov esi, dword [0x48fbcc]
mov dword [0x48fbd0], eax
lea ecx, [ebp - 0x18]
call fcn.0042602e
lea ecx, [ebp - 4]
call fcn.0042602e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret