Function at 0x409361
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x496bbc]
test eax, eax
jne 0x409607
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 0x48151a
mov ecx, 0x496bbc
call fcn.0042c4b4
and dword [0x496bc0], 0
push 0x105
lea ecx, [ebp - 4]
call fcn.0042c415
mov eax, dword [ebp - 4]
and word [eax], 0
push 0x104
push eax
push dword [0x496dd4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push 0x481518
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.00436214
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042c465
lea ecx, [ebp - 0xc]
call fcn.0042704a
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xc]
call fcn.00436214
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042c465
lea ecx, [ebp - 0xc]
call fcn.0042704a
push edi
mov esi, str..lang
push esi
lea ecx, [ebp - 0xc]
call fcn.00436214
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042c465
lea ecx, [ebp - 0xc]
call fcn.0042704a
lea ecx, [ebp - 0x18]
call fcn.0042c281
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.0040f377
add esp, 0xc
cmp eax, 0xfffffffe
jne 0x40949f
mov eax, dword [ebp - 4]
and word [eax + ebx*2], 0
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.00436214
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0042c465
lea ecx, [ebp - 0xc]
call fcn.0042704a
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call fcn.0040f377
add esp, 0xc
cmp eax, 1
jge 0x4094ab
xor esi, esi
jmp 0x4095f2
mov edi, dword [ebp - 0x18]
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
push 6
push edi
push 0x481508
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
call fcn.00427f14
add esp, 0xc
test al, al
push 2
pop ebx
je 0x409509
lea eax, [ebp - 8]
call fcn.0040edc9
mov edi, dword [ebp - 8]
test edi, edi
je 0x409509
xor eax, eax
mov ax, word [edi]
push eax
call fcn.004029d1
add esp, 4
test al, al
je 0x409509
xor eax, eax
add edi, ebx
mov ax, word [edi]
push eax
call fcn.004029d1
add esp, 4
test al, al
jne 0x4094f2
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov esi, edi
jmp 0x4095c7
push 5
push edi
push str.str:
call fcn.00427f14
add esp, 0xc
test al, al
je 0x4095d1
lea eax, [ebp - 8]
call fcn.0040edc9
lea eax, [edi + 0xa]
mov cx, word [eax]
cmp cx, 0x30
mov edi, dword [ebp - 8]
jb 0x40959a
cmp cx, 0x39
ja 0x40959a
jmp 0x409590
mov cx, word [eax]
cmp cx, 0x5c
jne 0x409589
lea ecx, [eax + 2]
mov dx, word [ecx]
cmp dx, 0x72
jne 0x40956b
mov word [esi], 0xd
add esi, ebx
add eax, 4
jmp 0x409590
cmp dx, 0x6e
jne 0x409578
mov word [esi], 0xa
jmp 0x409564
mov word [esi], 0x5c
add esi, ebx
cmp dx, 0x5c
je 0x409566
mov eax, ecx
jmp 0x409590
mov word [esi], cx
add esi, ebx
add eax, ebx
cmp eax, edi
jb 0x40954a
and word [esi], 0
add esi, ebx
xor eax, eax
mov ax, word [edi]
push eax
call fcn.004029d1
add esp, 4
test al, al
je 0x4095c7
and word [edi], 0
xor eax, eax
add edi, ebx
mov ax, word [edi]
push eax
call fcn.004029d1
add esp, 4
test al, al
jne 0x4095ac
mov dword [ebp - 8], edi
cmp word [edi], 0
jne 0x409513
sub esi, dword [ebp - 0xc]
mov ecx, 0x496bbc
sar esi, 1
push esi
push dword [ebp - 0xc]
call fcn.0042c51d
lea eax, [esi + esi]
mov esi, dword [0x496bbc]
mov dword [0x496bc0], eax
lea ecx, [ebp - 0x18]
call fcn.0042704a
lea ecx, [ebp - 4]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret