Function at 0x418334
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0x10]
push edi
push edi
push 0x7d6
push esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x44c], eax
call ebx
test eax, eax
jne 0x418391
push 0xc36b
push 1
call fcn.004024f0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x418e60
xorps xmm0, xmm0
mov dword [ebp - 0x4a4], 0x14
push esi
mov dword [ebp - 0x490], 0x42
mov dword [ebp - 0x46a], edi
mov dword [ebp - 0x466], edi
mov dword [ebp - 0x462], edi
movups xmmword [ebp - 0x45e], xmm0
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x48c], eax
xor ecx, ecx
mov eax, dword [0x5c0b94]
xor edi, edi
mov dword [ebp - 0x46e], eax
inc edi
push ecx
mov eax, 0xffff
mov dword [ebp - 0x47c], 0x40100
push ecx
mov word [ebp - 0x472], ax
mov eax, dword [0x5b9f84]
push 0x85f
mov dword [ebp - 0x488], eax
mov eax, dword [0x5b9f88]
push esi
mov word [ebp - 0x478], di
mov word [ebp - 0x476], di
mov word [ebp - 0x474], di
mov word [ebp - 0x470], di
mov dword [ebp - 0x480], ecx
mov dword [ebp - 0x484], eax
call ebx
push 0
push 0
push 0x861
push esi
mov dword [ebp - 0x41c], eax
call ebx
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x41c], eax
jne 0x41845f
or dword [ebp - 0x47c], 4
jmp 0x418465
or dword [ebp - 0x47c], edi
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.COMDLG32.dll_PrintDlgW]
test eax, eax
je 0x418e5e
mov eax, dword [ebp - 0x488]
mov ebx, dword [ebp - 0x480]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
mov dword [0x5b9f84], eax
mov eax, dword [ebp - 0x484]
push ebx
mov dword [0x5b9f88], eax
mov dword [ebp - 0x418], ebx
call esi
push 0x5a
push ebx
mov dword [ebp - 0x414], eax
call esi
push 0x6e
push ebx
mov dword [ebp - 0x410], eax
call esi
push 0x6f
push ebx
mov dword [ebp - 0x448], eax
call esi
push 0x70
push ebx
mov dword [ebp - 0x444], eax
call esi
push 0x71
push ebx
mov dword [ebp - 0x370], eax
call esi
push 8
push ebx
mov dword [ebp - 0x36c], eax
call esi
mov ecx, dword [ebp - 0x448]
sub ecx, dword [ebp - 0x370]
push 0xa
sub ecx, eax
push ebx
mov dword [ebp - 0x368], ecx
call esi
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x36c]
sub ecx, edx
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
sub ecx, eax
cmp dword [0x5bd170], 0
mov dword [ebp - 0x364], ecx
jne 0x41855f
cmp dword [0x5bd178], 0
jne 0x41855f
cmp dword [0x5bd174], 0
jne 0x41855f
cmp dword [0x5bd17c], 0
jne 0x41855f
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x37c], edx
jmp 0x418677
push 3
lea eax, [ebp - 0xc]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0xc], 0x30
jne 0x4185c5
push 0x9ec
push dword [ebp - 0x414]
push dword [0x5bd170]
call esi
push 0x9ec
push dword [ebp - 0x410]
mov dword [ebp - 0x428], eax
push dword [0x5bd174]
call esi
push 0x9ec
push dword [ebp - 0x414]
mov dword [ebp - 0x424], eax
push dword [0x5bd178]
call esi
push 0x9ec
jmp 0x41860f
push 0x3e8
push dword [ebp - 0x414]
push dword [0x5bd170]
call esi
push 0x3e8
push dword [ebp - 0x410]
mov dword [ebp - 0x428], eax
push dword [0x5bd174]
call esi
push 0x3e8
push dword [ebp - 0x414]
mov dword [ebp - 0x424], eax
push dword [0x5bd178]
call esi
push 0x3e8
push dword [ebp - 0x410]
mov dword [ebp - 0x420], eax
push dword [0x5bd17c]
call esi
mov ecx, eax
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x370], eax
cmovg eax, dword [ebp - 0x370]
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x424]
cmp dword [ebp - 0x36c], eax
cmovg eax, dword [ebp - 0x36c]
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp - 0x420]
cmp dword [ebp - 0x368], eax
cmovg eax, dword [ebp - 0x368]
cmp dword [ebp - 0x364], ecx
cmovg ecx, dword [ebp - 0x364]
mov esi, dword [sym.imp.GDI32.dll_DPtoLP]
mov dword [ebp - 0x378], eax
lea eax, [ebp - 0x380]
push 2
push eax
push ebx
mov dword [ebp - 0x374], ecx
call esi
push 2
lea eax, [ebp - 0x370]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x448]
push eax
push ebx
call esi
push 0x48
push dword [ebp - 0x410]
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x52f948
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 - 0x428], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_GetTextMetricsW]
lea eax, [ebp - 0x3dc]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x3cc]
xor ecx, ecx
add eax, dword [ebp - 0x3dc]
cmp dword [0x5bd18c], 3
push 0x48
push dword [ebp - 0x410]
cmove eax, ecx
push 7
mov dword [ebp - 0x430], 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 - 0x438], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x3dc]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x3cc]
xor edi, edi
add eax, dword [ebp - 0x3dc]
xor ecx, ecx
inc edi
cmp dword [0x5bd188], edi
cmove eax, ecx
xor esi, esi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x4a4]
push eax
push ebx
mov dword [ebp - 0x49c], esi
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x494], esi
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jns 0x4187da
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x428]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4187c6
push eax
call esi
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x4187d3
push eax
call esi
xor eax, eax
jmp 0x418e60
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100
lea eax, [ebp - 0x24c]
push eax
push esi
lea eax, [ebp - 0x3a0]
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
cmp dword [0x5bd18c], esi
jne 0x418856
push 0x80
lea eax, [ebp - 0x34c]
push eax
push esi
lea eax, [ebp - 0x3a0]
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x24c]
push 0x52f960
push eax
call esi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x24c]
push eax
call esi
xor esi, esi
mov eax, dword [0x5bd184]
movaps xmm0, xmmword [0x52f970]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
movups xmmword [ebp - 0x360], xmm0
mov dword [ebp - 0x350], 4
push dword [ebp + eax*4 - 0x360]
push 0x864
push dword [ebp - 0x42c]
call esi
push 0
push dword [0x5bd180]
push 0x862
push dword [ebp - 0x42c]
call esi
push 0
push 0
push 0x7d6
push dword [ebp - 0x42c]
call esi
mov dword [ebp - 0x410], eax
mov esi, eax
xor eax, eax
test byte [ebp - 0x47c], 1
mov dword [ebp - 0x414], eax
je 0x41890e
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x43c]
cmp eax, ecx
jle 0x4188e9
mov edx, ecx
mov dword [ebp - 0x410], eax
mov ecx, eax
jmp 0x4188f1
mov edx, eax
mov dword [ebp - 0x410], ecx
xor eax, eax
test edx, edx
cmovns eax, edx
mov dword [ebp - 0x414], eax
cmp ecx, esi
jle 0x41890e
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x380]
sub eax, dword [ebp - 0x370]
mov ecx, dword [ebp - 0x448]
mov esi, dword [ebp - 0x444]
and dword [ebp - 0x3f4], 0
and dword [ebp - 0x3f0], 0
mov dword [ebp - 0x404], eax
mov eax, ecx
sub eax, dword [ebp - 0x378]
sub eax, dword [ebp - 0x370]
sub ecx, dword [ebp - 0x368]
sub ecx, dword [ebp - 0x370]
mov dword [ebp - 0x3fc], eax
dec ecx
mov eax, esi
mov dword [ebp - 0x40c], ebx
sub eax, dword [ebp - 0x364]
sub eax, dword [ebp - 0x36c]
dec eax
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x3e8], eax
mov eax, dword [ebp - 0x430]
cdq
sub eax, edx
mov dword [ebp - 0x3ec], ecx
sar eax, 1
mov dword [ebp - 0x41c], eax
sub eax, dword [ebp - 0x36c]
add eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x37c]
mov dword [ebp - 0x400], eax
mov eax, dword [ebp - 0x420]
cdq
sub eax, edx
mov dword [ebp - 0x424], edi
sar eax, 1
mov edx, edi
sub esi, eax
mov dword [ebp - 0x43c], eax
sub esi, dword [ebp - 0x420]
sub esi, dword [ebp - 0x374]
sub esi, dword [ebp - 0x36c]
mov dword [ebp - 0x3f8], esi
mov esi, dword [ebp - 0x410]
cmp dword [ebp - 0x414], esi
jge 0x418e01
mov al, byte [ebp - 0x47c]
test al, 2
je 0x418a19
movzx eax, word [ebp - 0x478]
cmp edx, eax
jl 0x418a10
movzx eax, word [ebp - 0x476]
cmp edx, eax
jle 0x418a19
and dword [ebp - 0x434], 0
jmp 0x418a1f
mov dword [ebp - 0x434], edi
push edx
push dword [ebp - 0x44c]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebp - 0x434], 0
je 0x418c1c
call fcn.0040c727
push dword [ebp - 0x424]
call fcn.004182bd
pop ecx
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 - 0x428]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 8
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [ebp - 0x400]
sub edx, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x390], ecx
mov ecx, edx
sub ecx, dword [ebp - 0x430]
mov dword [ebp - 0xc], eax
mov eax, dword [0x5bd18c]
mov dword [ebp - 0x38c], ecx
mov ecx, dword [ebp - 0x3fc]
mov dword [ebp - 0x388], ecx
mov dword [ebp - 0x384], edx
cmp eax, 3
jge 0x418b09
push 0
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x440]
lea eax, [ebp - 0x390]
push eax
mov eax, dword [ebp - 0x400]
sub eax, dword [ebp - 0x41c]
push 0
push eax
mov eax, dword [ebp - 0x404]
add eax, 5
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [0x5bd18c]
test eax, eax
je 0x418b11
cmp eax, edi
jne 0x418b8a
push dword [ebp - 0x438]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x390]
push eax
mov eax, dword [ebp - 0x400]
sub eax, dword [ebp - 0x41c]
push 0
push eax
mov eax, dword [ebp - 0x3fc]
sub eax, dword [ebp - 0x4ac]
sub eax, 5
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [0x5bd18c]
cmp eax, 3
jge 0x418c1c
push dword [ebp - 0xc]
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 - 0x418]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x400]
mov edi, eax
mov eax, dword [ebp - 0x430]
cdq
and edx, 3
push 0
lea esi, [edx + eax]
sar esi, 2
sub ecx, esi
push ecx
push dword [ebp - 0x404]
push dword [ebp - 0x418]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp - 0x400]
sub ecx, esi
mov esi, dword [ebp - 0x418]
push ecx
push dword [ebp - 0x3fc]
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 - 0x410]
inc edi
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x3e4], eax
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x434]
mov dword [ebp - 0x3e0], esi
push 0x867
push dword [ebp - 0x42c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x434], 0
mov ecx, eax
mov dword [ebp - 0x414], ecx
je 0x418dcb
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 - 0x438]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [ebp - 0x404]
mov edx, dword [ebp - 0x43c]
add edx, dword [ebp - 0x3f8]
mov dword [ebp - 0x35c], ecx
mov ecx, dword [ebp - 0x3fc]
mov dword [ebp - 0x354], ecx
mov ecx, dword [ebp - 0x420]
add ecx, edx
mov dword [ebp - 0xc], eax
cmp dword [0x5bd188], 0
mov dword [ebp - 0x358], edx
mov dword [ebp - 0x350], ecx
jne 0x418dbe
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4c]
push eax
call esi
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0
lea eax, [ebp - 0x4c]
push eax
call esi
push eax
lea eax, [ebp - 0x4c]
xor esi, esi
push eax
lea eax, [ebp - 0x35c]
push eax
mov eax, dword [ebp - 0x3f8]
add eax, dword [ebp - 0x43c]
push esi
push eax
mov eax, dword [ebp - 0x3fc]
sub eax, dword [ebp - 0x4b4]
sub eax, 5
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [ebp - 0xc]
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 - 0x418]
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 - 0x420]
mov esi, eax
test esi, esi
jns 0x418d6b
add esi, 3
sar esi, 2
mov ecx, dword [ebp - 0x3f8]
push 0
add ecx, esi
push ecx
push dword [ebp - 0x404]
push dword [ebp - 0x418]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x3f8]
add eax, esi
mov esi, dword [ebp - 0x418]
push eax
push dword [ebp - 0x3fc]
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 - 0x410]
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x424]
mov al, byte [ebp - 0x47c]
inc edx
mov dword [ebp - 0x424], edx
test al, 2
je 0x418df3
movzx eax, word [ebp - 0x476]
cmp edx, eax
jg 0x418dfe
mov al, byte [ebp - 0x47c]
push 1
pop edi
cmp ecx, esi
jl 0x4189f6
xor edi, edi
inc edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x867
push dword [ebp - 0x42c]
call esi
push ebx
call dword [sym.imp.GDI32.dll_EndDoc]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x418e37
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x418e48
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0
push 0x409
push dword [0x5c0b84]
call esi
call fcn.0040c73d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004afcaa
leave
ret