Function at 0x1074895
Capabilities:
Get geographical location

Disassembly:
push 0x248
mov eax, 0x10b8e48
call fcn.010aac8f
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x21c]
push eax
xor esi, esi
push 0x1019e44
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x21c], esi
call fcn.010ab82f
mov dword [ebp - 4], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x23c], 0xc
cmp edi, esi
jne 0x1074916
mov esi, 0x80070057
mov dword [ebp - 0x21c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 0x10
cmp ebx, esi
je 0x10748f2
cmp dword [ebp - 0x21c], esi
jl 0x1074cc8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
mov word [ebp - 0x228], ax
lea edi, [ebp - 0x226]
stosw word es:[edi], ax
push 2
lea eax, [ebp - 0x228]
push eax
push 0x100c
mov edi, 0x400
push edi
call ebx
cmp eax, esi
jne 0x107499b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x107496b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x107499b
test byte [eax + 0x1c], 4
je 0x107499b
push dword [ebp - 0x21c]
push 0x1019d30
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
cmp dword [ebp - 0x21c], esi
jl 0x1074cc8
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
cmp dword [ebp - 0x21c], esi
mov dword [ebp - 0x228], eax
jl 0x1074cc8
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
push 0x1009
push edi
call ebx
xor ebx, ebx
cmp eax, ebx
jne 0x1074a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1074a13
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1074a8d
test byte [eax + 0x1c], 4
je 0x1074a8d
push dword [ebp - 0x21c]
push 0x1019d30
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
jmp 0x1074a88
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push ebx
push esi
lea ecx, [ebp - 0x218]
push ecx
push 0x21
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
lea eax, [ebp - 0x218]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1074a6e
sub eax, ecx
sar eax, 1
je 0x1074a88
mov dword [ebp - 0x23c], 0xd
mov eax, dword [section..data]
cmp dword [ebp - 0x21c], ebx
jl 0x1074cc8
mov esi, dword [ebp - 0x24c]
mov ecx, dword [ebp + 0xc]
sub ecx, ebx
lea edi, [ebp - 0x238]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
movsd dword es:[edi], dword [esi]
pop esi
je 0x1074b7b
dec ecx
je 0x1074b17
dec ecx
je 0x1074b09
dec ecx
je 0x1074b00
dec ecx
je 0x1074aef
cmp eax, section..data
je 0x1074b99
test byte [eax + 0x1c], 4
je 0x1074b99
push 0x1019d30
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
jmp 0x1074b94
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
jmp 0x1074b99
mov ecx, esi
mov word [ebp - 0x236], cx
mov ecx, esi
mov word [ebp - 0x232], cx
jmp 0x1074b99
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.01074814
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jl 0x1074cc8
movzx eax, word [ebp - 0x234]
add eax, 6
push 7
pop ecx
xor edx, edx
div ecx
mov eax, edx
sub eax, dword [ebp - 0x228]
xor edx, edx
add eax, ecx
div ecx
mov ecx, 0xc9
push ecx
mov ecx, 0x2a69c000
push ecx
mov eax, edx
cdq
push edx
push eax
call fcn.010aae50
sub dword [ebp - 0x224], eax
sbb dword [ebp - 0x220], edx
jmp 0x1074b94
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.01074814
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp dword [ebp - 0x21c], ebx
jl 0x1074cc8
mov ecx, dword [ebp + 0xc]
sub ecx, ebx
je 0x1074c66
dec ecx
je 0x1074c50
dec ecx
je 0x1074bfd
dec ecx
je 0x1074bf0
dec ecx
je 0x1074c87
cmp eax, section..data
je 0x1074c87
test byte [eax + 0x1c], 4
je 0x1074c87
push 0x1019d30
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
jmp 0x1074c87
mov ax, word [ebp + 0x10]
sub word [ebp - 0x238], ax
jmp 0x1074c35
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x23c]
sub word [ebp - 0x238], ax
movzx eax, word [ebp - 0x236]
sub eax, edx
cmp eax, esi
jge 0x1074c2e
mov ecx, 0xffff
add word [ebp - 0x238], cx
add eax, dword [ebp - 0x23c]
mov word [ebp - 0x236], ax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.01074814
mov dword [ebp - 0x21c], eax
jmp 0x1074c87
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 7
mov eax, 0xc9
push eax
mov eax, 0x2a69c000
push eax
push ebx
push ecx
jmp 0x1074c76
mov eax, 0xc9
push eax
mov eax, 0x2a69c000
push eax
push ebx
push dword [ebp + 0x10]
call fcn.010aae50
sub dword [ebp - 0x224], eax
sbb dword [ebp - 0x220], edx
cmp dword [ebp - 0x21c], ebx
jl 0x1074cc8
mov eax, dword [ebp - 0x224]
push dword [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, ebx
jne 0x1074cc8
mov dword [ebp - 0x21c], 0x80004005
mov esi, dword [ebp - 0x21c]
jmp 0x10748fd