Function at 0x40925d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
push edi
mov edi, edx
test ecx, ecx
jne 0x41ba58
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
cmp edi, 1
jne 0x41ba75
movzx eax, word [ebp - 0x14a]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x43b9d0
push eax
movzx eax, word [ebp - 0x14c]
push 0x43b9b0
push eax
movzx eax, word [ebp - 0x14e]
push ecx
push eax
movzx eax, word [ebp - 0x150]
push ecx
push eax
push 0x40221c
test esi, esi
je 0x41ba68
push dword [ebp + 0xc]
push esi
call fcn.004099ff
add esp, 0x28
lea edx, [esi + 2]
xor ecx, ecx
push 2
pop ebx
mov ax, word [esi]
add esi, ebx
cmp ax, cx
jne 0x40932e
sub esi, edx
sar esi, 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ad0
leave
ret 8
lea edx, [ebp - 0x170]
call fcn.004246f7
jmp 0x4092a9
call fcn.00409890
add esp, 0x20
jmp 0x41bbfd
push 2
xor edi, edi
cmp byte [0x435745], 0
pop ebx
je 0x41bc04
mov dword [ebp - 0x15c], edi
lea eax, [ebp - 0x148]
lea edi, [ebx + 0x7e]
push edi
push eax
push 0x1003
call fcn.004086e1
push eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
jne 0x41bae4
lea ecx, [ebp - 0x148]
mov edx, 0x403940
mov eax, ecx
sub edx, eax
lea eax, [edi + 0x7fffff7e]
test eax, eax
je 0x41bad9
movzx eax, word [edx + ecx]
test ax, ax
je 0x41bad9
mov word [ecx], ax
add ecx, ebx
sub edi, 1
jne 0x41babc
test edi, edi
jne 0x41badf
sub ecx, ebx
xor eax, eax
mov word [ecx], ax
mov ax, word [ebp - 0x148]
lea edi, [ebp - 0x148]
test ax, ax
je 0x41bbb2
movzx ecx, ax
xor esi, esi
mov dword [ebp - 0x164], ecx
cmp cx, 0x27
jne 0x41bb20
xor eax, eax
add edi, ebx
cmp dword [ebp - 0x15c], eax
sete al
mov dword [ebp - 0x15c], eax
jmp 0x41bb96
cmp dword [ebp - 0x15c], esi
je 0x41bb2c
add edi, ebx
jmp 0x41bb96
cmp cx, 0x68
je 0x41bb3e
cmp cx, 0x48
je 0x41bb3e
cmp cx, 0x6d
jne 0x41bb96
mov edx, esi
add edi, ebx
inc edx
cmp word [edi], cx
je 0x41bb40
mov eax, edx
neg eax
lea eax, [edi + eax*2]
mov dword [ebp - 0x160], eax
lea edi, [eax + 2]
cmp edx, 1
jne 0x41bb96
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, si
jne 0x41bb62
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x160]
push edi
call sub.msvcrt.dll_memmove
mov ecx, dword [ebp - 0x160]
add esp, 0xc
mov eax, dword [ebp - 0x164]
mov word [ecx], ax
add edi, ebx
movzx eax, word [edi]
mov ecx, eax
mov dword [ebp - 0x164], ecx
test ax, ax
jne 0x41bb05
mov esi, dword [ebp - 0x168]
push 0x20
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
call fcn.004086e1
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
test eax, eax
jne 0x41bbdb
mov word [ebp - 0x48], ax
xor edi, edi
test esi, esi
jne 0x41bc5b
lea edx, [ebp - 0x48]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, ebx
cmp ax, di
jne 0x41bbe7
sub edx, ecx
lea ecx, [ebp - 0x48]
sar edx, 1
call fcn.004098cd
mov esi, eax
jmp 0x40933c
mov eax, 0x403958
movzx ecx, word [ebp - 0x150]
cmp dword [0x42d0c4], edi
je 0x41bc32
push 0xc
pop edx
cmp ecx, edx
jb 0x41bc2a
jbe 0x41bc23
sub ecx, edx
mov eax, 0x40395c
jmp 0x41bc37
test ecx, ecx
jne 0x41bc37
mov ecx, edx
jmp 0x41bc37
mov eax, 0x40233c
push eax
movzx eax, word [ebp - 0x14e]
push eax
push 0x43b9d0
push ecx
push 0x4039d0
lea eax, [ebp - 0x48]
push 0x20
push eax
call fcn.004099ff
add esp, 0x1c
jmp 0x41bbdd
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0040f2e0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, ebx
cmp ax, di
jne 0x41bc6c
sub esi, ecx
jmp 0x40933a