Function at 0x46c36c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4d4028]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
test ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
jne 0x46c3a0
mov eax, 0x4a4090
jmp 0x46c72d
and word [ebx], 0
mov ecx, dword [eax]
or ecx, dword [eax + 4]
mov dword [esp + 0x24], ebx
jne 0x46c3cb
mov eax, 0x4a4090
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x46c3b8
jmp 0x46c72b
test word [ebp + 0xc], 0x100
lea ecx, [esp + 0x14]
je 0x46c3e0
push ecx
push eax
call fcn.0046c326
jmp 0x46c3e5
call fcn.0046c2e7
test eax, eax
jne 0x46c405
mov eax, str.__:__:__
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x46c3f2
jmp 0x46c72b
test byte [ebp + 0xc], 8
je 0x46c51d
push 5
pop ecx
mov esi, str.yyyy_MM_dd
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
push 0x8c
lea eax, [esp + 0xca]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00491fe0
add esp, 0xc
push 0x51
lea eax, [esp + 0xb4]
push eax
push 0x1f
mov edi, 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [ebp + 0xc]
and eax, 0x28
cmp al, 0x28
je 0x46c48a
lea eax, [esp + 0xb0]
push str.yyyy
push eax
call dword [0x4a3144]
test eax, eax
pop ecx
pop ecx
je 0x46c48a
lea ecx, [eax + 8]
lea edx, [eax + 4]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
inc ecx
inc ecx
test ax, ax
jne 0x46c47c
mov esi, 0x12c
push esi
push ebx
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
test eax, eax
jne 0x46c4cd
movzx eax, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push eax
push str._4.4d__2.2d__2.2d
push esi
push ebx
call dword [0x4a3114]
add esp, 0x18
test byte [ebp + 0xc], 2
je 0x46c503
mov edi, ebx
dec edi
dec edi
test word [ebp + 0xc], 0x200
je 0x46c4f2
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x46c4df
mov esi, 0x4a67cc
movsd dword es:[edi], dword [esi]
jmp 0x46c502
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x46c4f2
mov esi, 0x4a3d98
movsd dword es:[edi], dword [esi]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x46c508
sub eax, edx
sar eax, 1
lea eax, [ebx + eax*2]
mov dword [esp + 0x24], eax
test byte [ebp + 0xc], 2
je 0x46c6ae
mov esi, str.HH:mm:ss
lea edi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x2a
lea eax, [esp + 0x4e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00491fe0
add esp, 0xc
push 0x1e
lea eax, [esp + 0x3c]
push eax
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test byte [ebp + 0xc], 1
jne 0x46c5a9
lea eax, [esp + 0x38]
push 0x73
push eax
call dword [0x4a3134]
test eax, eax
pop ecx
pop ecx
je 0x46c65a
lea ecx, [esp + 0x38]
cmp eax, ecx
jbe 0x46c585
dec eax
dec eax
lea ecx, [eax + 2]
jmp 0x46c58c
inc ecx
inc ecx
cmp word [ecx], 0x73
je 0x46c58a
mov edx, eax
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
inc ecx
inc ecx
test ax, ax
jne 0x46c596
jmp 0x46c65a
test byte [ebp + 0xc], 0x10
je 0x46c65a
lea eax, [esp + 0x38]
push 0x73
push eax
call dword [0x4a3148]
mov ebx, eax
lea eax, [esp + 0x40]
cmp ebx, eax
pop ecx
pop ecx
jb 0x46c656
mov esi, ebx
sub esi, eax
sar esi, 1
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x7c]
push eax
call dword [0x4a3174]
and word [esp + esi*2 + 0x82], 0
add esp, 0xc
lea edi, [esp + 0x74]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x46c5fc
mov esi, 0x4b0ce8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 2]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x46c616
sub eax, edx
lea edi, [esp + 0x74]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x46c628
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
movzx ecx, word [esp + eax + 0x74]
mov word [esp + eax + 0x38], cx
inc eax
inc eax
test cx, cx
jne 0x46c645
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
sub eax, ebx
sar eax, 1
mov esi, 0x12c
sub esi, eax
push esi
push dword [esp + 0x28]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jne 0x46c6ae
movzx eax, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push eax
push str._2.2d:_2.2d:_2.2d
push esi
push dword [esp + 0x38]
call dword [0x4a3114]
add esp, 0x18
test byte [ebp + 0xc], 0x10
je 0x46c72b
push str..xxx
push ebx
call dword [0x4a3144]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x46c727
xor eax, eax
mov dword [esp + 0x2c], 0x2e
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
push 5
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [esp + 0x2c]
mov word [ebx], ax
inc ebx
inc ebx
cmp word [esp + 0x22], 0x3e7
jbe 0x46c706
and word [esp + 0x22], 0
movzx eax, word [esp + 0x22]
push eax
lea eax, [esp + 0x28]
push str._03.3d
push eax
call fcn.0044f343
lea esi, [esp + 0x30]
mov edi, ebx
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsw word es:[edi], word [esi]
mov ebx, dword [esp + 0x10]
mov eax, ebx
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00490f79
mov esp, ebp
pop ebp
ret 8