Function at 0x41ef65
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [0x52a68c]
push edi
xor edi, edi
mov dword [ebp - 0x448], edx
push edi
push edi
push 0x7d6
push esi
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x434], esi
call ebx
test eax, eax
jne 0x41efc2
push 0xc36b
push 1
call fcn.00401b50
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x41fa94
xorps xmm0, xmm0
mov dword [ebp - 0x4b0], 0x14
push esi
mov dword [ebp - 0x49c], 0x42
mov dword [ebp - 0x476], edi
mov dword [ebp - 0x472], edi
mov dword [ebp - 0x46e], edi
movups xmmword [ebp - 0x46a], xmm0
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x498], eax
xor ecx, ecx
mov eax, dword [0x52a6a0]
xor edi, edi
mov dword [ebp - 0x47a], eax
inc edi
push ecx
mov eax, 0xffff
mov dword [ebp - 0x488], 0x40100
push ecx
mov word [ebp - 0x47e], ax
mov eax, dword [0x524fd8]
push 0x85f
mov dword [ebp - 0x494], eax
mov eax, dword [0x524fdc]
push esi
mov word [ebp - 0x484], di
mov word [ebp - 0x482], di
mov word [ebp - 0x480], di
mov word [ebp - 0x47c], di
mov dword [ebp - 0x48c], ecx
mov dword [ebp - 0x490], eax
call ebx
push 0
push 0
push 0x861
push esi
mov dword [ebp - 0x424], eax
call ebx
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x424], eax
jne 0x41f090
or dword [ebp - 0x488], 4
jmp 0x41f096
or dword [ebp - 0x488], edi
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.COMDLG32.dll_PrintDlgW]
test eax, eax
je 0x41fa92
mov eax, dword [ebp - 0x494]
mov ebx, dword [ebp - 0x48c]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
mov dword [0x524fd8], eax
mov eax, dword [ebp - 0x490]
push ebx
mov dword [0x524fdc], eax
mov dword [ebp - 0x420], ebx
call esi
push 0x5a
push ebx
mov dword [ebp - 0x41c], eax
call esi
push 0x6e
push ebx
mov dword [ebp - 0x418], eax
call esi
push 0x6f
push ebx
mov dword [ebp - 0x450], eax
call esi
push 0x70
push ebx
mov dword [ebp - 0x44c], eax
call esi
push 0x71
push ebx
mov dword [ebp - 0x378], eax
call esi
push 8
push ebx
mov dword [ebp - 0x374], eax
call esi
mov ecx, dword [ebp - 0x450]
sub ecx, dword [ebp - 0x378]
push 0xa
sub ecx, eax
push ebx
mov dword [ebp - 0x370], ecx
call esi
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ebp - 0x374]
sub ecx, edx
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
sub ecx, eax
cmp dword [0x52a5d0], 0
mov dword [ebp - 0x36c], ecx
jne 0x41f190
cmp dword [0x52a5d8], 0
jne 0x41f190
cmp dword [0x52a5d4], 0
jne 0x41f190
cmp dword [0x52a5dc], 0
jne 0x41f190
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x384], edx
jmp 0x41f2a8
push 3
lea eax, [ebp - 0x10]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x10], 0x30
jne 0x41f1f6
push 0x9ec
push dword [ebp - 0x41c]
push dword [0x52a5d0]
call esi
push 0x9ec
push dword [ebp - 0x418]
mov dword [ebp - 0x430], eax
push dword [0x52a5d4]
call esi
push 0x9ec
push dword [ebp - 0x41c]
mov dword [ebp - 0x42c], eax
push dword [0x52a5d8]
call esi
push 0x9ec
jmp 0x41f240
push 0x3e8
push dword [ebp - 0x41c]
push dword [0x52a5d0]
call esi
push 0x3e8
push dword [ebp - 0x418]
mov dword [ebp - 0x430], eax
push dword [0x52a5d4]
call esi
push 0x3e8
push dword [ebp - 0x41c]
mov dword [ebp - 0x42c], eax
push dword [0x52a5d8]
call esi
push 0x3e8
push dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
push dword [0x52a5dc]
call esi
mov ecx, eax
mov eax, dword [ebp - 0x430]
cmp dword [ebp - 0x378], eax
cmovg eax, dword [ebp - 0x378]
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x374], eax
cmovg eax, dword [ebp - 0x374]
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x370], eax
cmovg eax, dword [ebp - 0x370]
cmp dword [ebp - 0x36c], ecx
cmovg ecx, dword [ebp - 0x36c]
mov esi, dword [sym.imp.GDI32.dll_DPtoLP]
mov dword [ebp - 0x380], eax
lea eax, [ebp - 0x388]
push 2
push eax
push ebx
mov dword [ebp - 0x37c], ecx
call esi
push 2
lea eax, [ebp - 0x378]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x450]
push eax
push ebx
call esi
push 0x48
push dword [ebp - 0x418]
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
push str.Arial
xor ecx, ecx
mov edi, dword [sym.imp.GDI32.dll_CreateFontW]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x2bc
push ecx
push ecx
push ecx
push eax
call edi
push eax
push ebx
mov dword [ebp - 0x430], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_GetTextMetricsW]
lea eax, [ebp - 0x3e4]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x3d4]
xor ecx, ecx
add eax, dword [ebp - 0x3e4]
cmp dword [0x527548], 3
push 0x48
push dword [ebp - 0x418]
cmove eax, ecx
push 7
mov dword [ebp - 0x438], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push str.Arial
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x190
push ecx
push ecx
push ecx
push eax
call edi
push eax
push ebx
mov dword [ebp - 0x440], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x3e4]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x3d4]
xor edi, edi
add eax, dword [ebp - 0x3e4]
xor ecx, ecx
inc edi
cmp dword [0x52768c], edi
cmove eax, ecx
xor esi, esi
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x4b0]
push eax
push ebx
mov dword [ebp - 0x4a8], esi
mov dword [ebp - 0x4a4], esi
mov dword [ebp - 0x4a0], esi
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jns 0x41f40b
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x430]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x41f3f7
push eax
call esi
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x41f404
push eax
call esi
xor eax, eax
jmp 0x41fa94
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100
lea eax, [ebp - 0x254]
push eax
push esi
lea eax, [ebp - 0x3a8]
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
cmp dword [0x527548], esi
jne 0x41f487
push 0x80
lea eax, [ebp - 0x354]
push eax
push esi
lea eax, [ebp - 0x3a8]
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x254]
push 0x4bc6e8
push eax
call esi
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x254]
push eax
call esi
xor esi, esi
mov eax, dword [0x5278c0]
movaps xmm0, xmmword [0x4f2740]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
movups xmmword [ebp - 0x368], xmm0
mov dword [ebp - 0x358], 4
push dword [ebp + eax*4 - 0x368]
push 0x864
push dword [ebp - 0x434]
call esi
push 0
push dword [0x52a5c8]
push 0x862
push dword [ebp - 0x434]
call esi
push 0
push 0
push 0x7d6
push dword [ebp - 0x434]
call esi
mov dword [ebp - 0x418], eax
mov esi, eax
xor eax, eax
test byte [ebp - 0x488], 1
mov dword [ebp - 0x41c], eax
je 0x41f53f
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x444]
cmp eax, ecx
jle 0x41f51a
mov edx, ecx
mov dword [ebp - 0x418], eax
mov ecx, eax
jmp 0x41f522
mov edx, eax
mov dword [ebp - 0x418], ecx
xor eax, eax
test edx, edx
cmovns eax, edx
mov dword [ebp - 0x41c], eax
cmp ecx, esi
jle 0x41f53f
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x388]
sub eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 0x450]
mov esi, dword [ebp - 0x44c]
and dword [ebp - 0x3fc], 0
and dword [ebp - 0x3f8], 0
mov dword [ebp - 0x40c], eax
mov eax, ecx
sub eax, dword [ebp - 0x380]
sub eax, dword [ebp - 0x378]
sub ecx, dword [ebp - 0x370]
sub ecx, dword [ebp - 0x378]
mov dword [ebp - 0x404], eax
dec ecx
mov eax, esi
mov dword [ebp - 0x414], ebx
sub eax, dword [ebp - 0x36c]
sub eax, dword [ebp - 0x374]
dec eax
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x3f0], eax
mov eax, dword [ebp - 0x438]
cdq
sub eax, edx
mov dword [ebp - 0x3f4], ecx
sar eax, 1
mov dword [ebp - 0x428], eax
sub eax, dword [ebp - 0x374]
add eax, dword [ebp - 0x438]
add eax, dword [ebp - 0x384]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x42c]
cdq
sub eax, edx
mov dword [ebp - 0x424], edi
sar eax, 1
sub esi, eax
mov dword [ebp - 0x444], eax
sub esi, dword [ebp - 0x42c]
sub esi, dword [ebp - 0x37c]
sub esi, dword [ebp - 0x374]
mov dword [ebp - 0x400], esi
mov esi, dword [ebp - 0x418]
cmp dword [ebp - 0x41c], esi
jge 0x41fa35
mov dx, word [ebp - 0x482]
mov al, byte [ebp - 0x488]
mov ecx, dword [ebp - 0x424]
test al, 2
je 0x41f651
movzx eax, word [ebp - 0x484]
cmp ecx, eax
jl 0x41f648
movzx eax, dx
cmp ecx, eax
jle 0x41f651
and dword [ebp - 0x43c], 0
jmp 0x41f657
mov dword [ebp - 0x43c], edi
push ecx
push dword [ebp - 0x454]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebp - 0x43c], 0
je 0x41f84d
call fcn.00404ef9
call fcn.0041ef09
push ebx
call dword [sym.imp.GDI32.dll_StartPage]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0x430]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 8
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [ebp - 0x408]
sub edx, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x398], ecx
mov ecx, edx
sub ecx, dword [ebp - 0x438]
mov dword [ebp - 0x10], eax
mov eax, dword [0x527548]
mov dword [ebp - 0x394], ecx
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x390], ecx
mov dword [ebp - 0x38c], edx
cmp eax, 3
jge 0x41f73a
push 0
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x448]
lea eax, [ebp - 0x398]
push eax
mov eax, dword [ebp - 0x408]
sub eax, dword [ebp - 0x428]
push 0
push eax
mov eax, dword [ebp - 0x40c]
add eax, 5
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [0x527548]
test eax, eax
je 0x41f742
cmp eax, edi
jne 0x41f7bb
push dword [ebp - 0x440]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x398]
push eax
mov eax, dword [ebp - 0x408]
sub eax, dword [ebp - 0x428]
push 0
push eax
mov eax, dword [ebp - 0x404]
sub eax, dword [ebp - 0x4b8]
sub eax, 5
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [0x527548]
cmp eax, 3
jge 0x41f84d
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push edi
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x408]
mov edi, eax
mov eax, dword [ebp - 0x438]
cdq
and edx, 3
push 0
lea esi, [edx + eax]
sar esi, 2
sub ecx, esi
push ecx
push dword [ebp - 0x40c]
push dword [ebp - 0x420]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp - 0x408]
sub ecx, esi
mov esi, dword [ebp - 0x420]
push ecx
push dword [ebp - 0x404]
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
mov ebx, esi
mov esi, dword [ebp - 0x418]
inc edi
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x3ec], eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x43c]
mov dword [ebp - 0x3e8], esi
push 0x867
push dword [ebp - 0x434]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x43c], 0
mov ecx, eax
mov dword [ebp - 0x41c], ecx
je 0x41f9fc
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0x440]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [ebp - 0x40c]
mov edx, dword [ebp - 0x444]
add edx, dword [ebp - 0x400]
mov dword [ebp - 0x364], ecx
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x35c], ecx
mov ecx, dword [ebp - 0x42c]
add ecx, edx
mov dword [ebp - 0x10], eax
cmp dword [0x52768c], 0
mov dword [ebp - 0x360], edx
mov dword [ebp - 0x358], ecx
jne 0x41f9ef
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x54]
push eax
call esi
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0
lea eax, [ebp - 0x54]
push eax
call esi
push eax
lea eax, [ebp - 0x54]
xor esi, esi
push eax
lea eax, [ebp - 0x364]
push eax
mov eax, dword [ebp - 0x400]
add eax, dword [ebp - 0x444]
push esi
push eax
mov eax, dword [ebp - 0x404]
sub eax, dword [ebp - 0x4c0]
sub eax, 5
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push esi
push edi
push esi
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, dword [ebp - 0x420]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push esi
mov edi, eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebp - 0x42c]
mov esi, eax
test esi, esi
jns 0x41f99c
add esi, 3
sar esi, 2
mov ecx, dword [ebp - 0x400]
push 0
add ecx, esi
push ecx
push dword [ebp - 0x40c]
push dword [ebp - 0x420]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x400]
add eax, esi
mov esi, dword [ebp - 0x420]
push eax
push dword [ebp - 0x404]
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, esi
mov esi, dword [ebp - 0x418]
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
mov ecx, dword [ebp - 0x41c]
mov edi, dword [ebp - 0x424]
mov al, byte [ebp - 0x488]
inc edi
mov dx, word [ebp - 0x482]
mov dword [ebp - 0x424], edi
test al, 2
je 0x41fa27
movzx eax, dx
cmp edi, eax
jg 0x41fa32
mov al, byte [ebp - 0x488]
push 1
pop edi
cmp ecx, esi
jl 0x41f62c
xor edi, edi
inc edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x867
push dword [ebp - 0x434]
call esi
push ebx
call dword [sym.imp.GDI32.dll_EndDoc]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x41fa6b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x41fa7c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0
push 0x409
push dword [0x526ce4]
call esi
call fcn.00404f0f
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret