Function at 0x10651f6
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x1080bec]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x4f8], edi
mov dword [ebp - 0x500], ebx
mov dword [ebp - 0x4e4], ebx
mov dword [ebp - 0x4f4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1086e14], ebx
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 0x4f0], ebx
mov dword [0x1086e54], esi
je 0x106551a
push 0x1085f78
push dword [0x10869a0]
mov dword [0x1085f78], 0x14
mov dword [0x1085f7c], 0x10869f8
mov dword [0x1085f80], ebx
mov dword [0x1085f84], ebx
mov dword [0x1085f88], ebx
call dword [sym.imp.GDI32.dll_StartDocW]
cmp eax, 0xffffffff
jne 0x10652af
push ebx
push 0x1389
call fcn.0106bcca
push eax
push 0x166e
call fcn.0106bcca
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1065cc4
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_GetMapMode]
push 7
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SetMapMode]
mov edi, 0x1085f50
push edi
mov esi, 0x3e8
push esi
push esi
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push edi
push esi
push esi
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push 0x1085f48
push ebx
push ebx
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
cmp dword [0x1086f34], ebx
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
jne 0x1065350
mov esi, dword [0x1086e10]
push 0x17
pop ecx
push 0x48
push 0x5a
push dword [0x10869a0]
add esi, 0x780
mov edi, 0x1086e78
rep movsd dword es:[edi], dword [esi]
call ebx
push eax
mov eax, dword [0x1086e10]
mov eax, dword [eax + 0x780]
neg eax
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x1086e78], eax
mov esi, 0x1086e78
push esi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x1086e6c], eax
push 0x17
mov eax, 0x1086ed8
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [0x1086ee8], 0xfa
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [0x1086e6c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [0x10869a0]
mov dword [0x1086e70], eax
call edi
push 0xa
push dword [0x10869a0]
call ebx
and dword [0x1085f6c], 0
and dword [0x1085f68], 0
push 8
push dword [0x10869a0]
mov dword [0x1086e68], eax
mov dword [0x1085f74], eax
call ebx
push 0xc00
mov esi, 0x1085f68
push esi
push 0x1004bec
mov dword [0x1085f70], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push 0x1004bec
push dword [0x10869a0]
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xc00
push esi
push 7
push 0x1004bdc
push dword [0x10869a0]
mov dword [0x1086e60], eax
call dword [sym.imp.USER32.dll_DrawTextW]
push 8
push dword [0x10869a0]
mov dword [0x1086e64], eax
mov eax, dword [0x1086e68]
mov dword [0x1085f74], eax
call ebx
mov dword [0x1085f70], eax
mov eax, dword [0x1086e64]
push 0x14
pop ecx
cdq
idiv ecx
push 0
inc eax
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push dword [0x10869a0]
mov dword [0x1086f3c], eax
call edi
mov eax, dword [0x1086e64]
mov edi, 0x1085f58
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffe
movsd dword es:[edi], dword [esi]
add dword [0x1085f5c], eax
add dword [0x1085f68], 2
sub dword [0x1085f70], 2
add dword [0x1085f6c], 2
pop ecx
sub ecx, eax
add dword [0x1085f64], ecx
xor ebx, ebx
mov eax, dword [0x1086e10]
mov dword [0x1086e48], ebx
push dword [eax + 0x71c]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, ebx
je 0x1065d08
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x4f0]
push eax
push esi
call fcn.01063c5f
mov eax, dword [0x1086e10]
push esi
push dword [eax + 0x71c]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x4f0]
mov esi, 0x1086190
push esi
call fcn.01064e73
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x1065604
push ebx
push 0x1389
call fcn.0106bcca
push eax
push 0x15e9
call fcn.0106bcca
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1065d08
push ebx
push 0x80
push esi
push ebx
push ebx
push 0x40000000
mov esi, 0x10869f8
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1086e30], eax
jne 0x1065488
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x106558c
push 4
push 0x1389
call fcn.0106bcca
push eax
push 0x15ec
call fcn.0106bcca
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x10655d6
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1086e30], eax
cmp dword [0x1086e30], 0xffffffff
jne 0x1065488
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x166c
call fcn.0106bcca
push eax
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
push 0x1389
call fcn.0106bcca
push eax
lea eax, [ebp - 0x4cc]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xb1
mov esi, 0x773
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x1065d08
push 0x1669
call fcn.0106bcca
push eax
mov esi, 0x1086790
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.msvcrt.dll_time]
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.msvcrt.dll_localtime]
push eax
push 0x1004bc8
push 0xff
push 0x1085f90
call dword [sym.imp.msvcrt.dll_wcsftime]
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x100494c
push esi
call edi
push 0x1085f90
push esi
call edi
push 0x100494c
push esi
call edi
push 0x10869f8
push esi
call edi
mov eax, dword [0x1086e28]
add esp, 0x40
push 1
push 1
push eax
push dword [0x1086e2c]
push eax
push ebx
push ebx
push 0x15eb
call fcn.0106bcca
push eax
push dword [ebp - 0x4f8]
push dword [0x1085d0c]
call fcn.01066be1
cmp dword [0x108094c], ebx
mov dword [ebp - 0x4ec], eax
mov dword [0x1086e44], ebx
je 0x10656c2
push 0x1086190
push esi
call fcn.01064b93
mov eax, dword [0x1086e10]
push ebx
push dword [eax + 0x10]
call sub.NMAPI.dll_GetFrame
mov edi, dword [0x1086e28]
dec edi
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4e8], edi
jmp 0x1065c4b
cmp dword [0x1080948], ebx
je 0x106573b
mov eax, dword [0x1086f40]
cmp eax, ebx
push 1
push ebx
push ebx
push ebx
push edi
je 0x106570b
mov ecx, dword [0x1086e10]
push dword [ecx + 0x10]
push eax
jmp 0x1065719
mov eax, dword [0x1086e10]
push dword [eax + 0x10]
push dword [eax + 0x70c]
call sub.NMAPI.dll_FilterFindFrame
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x4e8], edi
je 0x1065c73
cmp edi, dword [0x1086e2c]
jae 0x1065c73
mov eax, dword [0x1086e10]
push edi
push dword [eax + 0x10]
call sub.NMAPI.dll_GetFrame
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x4d0], esi
je 0x1065bd8
push esi
call sub.NMAPI.dll_LockFramePropertyTable
lea eax, [ebp - 0x4d2]
push eax
push 0x400
lea eax, [ebp - 0x4cc]
push eax
push dword [ebp - 0x4d8]
mov word [ebp - 0x4cc], bx
push esi
push dword [0x1086e10]
call fcn.01064023
cmp word [ebp - 0x4cc], bx
jne 0x10657a8
lea eax, [ebp - 0x4cc]
push 0x1004b78
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x4f0]
lea eax, [ebp - 0x4cc]
push eax
call fcn.01064f2b
cmp dword [0x1080938], ebx
jne 0x1065825
cmp dword [0x1086e14], ebx
je 0x1065811
mov eax, dword [0x1085f6c]
push 0x1085f48
add eax, 0xa
push eax
push dword [0x1085f68]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [0x1085f6c]
add eax, 0xa
push eax
push dword [0x1085f70]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_LineTo]
jmp 0x1065975
push 0x1004ad8
call fcn.01064db1
call fcn.01063bb3
jmp 0x106598c
cmp dword [0x1086e1c], ebx
lea eax, [ebp - 0x4cc]
push eax
jne 0x1065987
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, 0xc8
cmp eax, ecx
jle 0x106584a
mov eax, ecx
mov esi, 0xc7
sub esi, eax
cmp dword [ebp - 0x4f4], ebx
jne 0x1065860
call fcn.01063bb3
jmp 0x1065866
mov dword [ebp - 0x4f4], ebx
cmp dword [0x1086e14], ebx
je 0x10658bb
mov eax, dword [0x1085f6c]
push 0x1085f48
add eax, 0xa
push eax
push dword [0x1085f68]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [0x1085f6c]
add eax, 0xa
push eax
push dword [0x1085f70]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [0x1086e64]
cdq
sub eax, edx
sar eax, 1
add dword [0x1085f6c], eax
jmp 0x10658c8
lea eax, [esi*2 + 0x10049e8]
push eax
call fcn.01064db1
push 0x1086190
call fcn.01064db1
cmp dword [0x1086e14], ebx
je 0x106593f
mov eax, dword [0x1085f6c]
push 0x1085f48
add eax, 0xa
push eax
push dword [0x1085f68]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [0x1085f6c]
add eax, 0xa
push eax
push dword [0x1085f70]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [0x1086e64]
cdq
sub eax, edx
sar eax, 1
add dword [0x1085f6c], eax
cmp dword [0x1086e14], ebx
je 0x106593f
push dword [0x1086e70]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x4cc]
push eax
call fcn.01064db1
cmp dword [0x1086e14], ebx
je 0x106581b
push dword [0x1086e6c]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x1086e14], ebx
je 0x106581b
mov eax, dword [0x1086e64]
cdq
sub eax, edx
sar eax, 1
add dword [0x1085f6c], eax
jmp 0x106598c
call fcn.01064db1
cmp dword [0x108093c], ebx
je 0x1065b38
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4d4], ebx
call sub.NMAPI.dll_LockFrameText
cmp eax, ebx
je 0x1065c59
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4 - 0x14]
cmp esi, eax
mov dword [ebp - 0x4e0], eax
ja 0x1065b14
test byte [esi + 0xe], 0xf
jne 0x1065a12
mov eax, dword [esi]
push dword [eax]
call sub.NMAPI.dll_GetProtocolFromProperty
push eax
call sub.NMAPI.dll_GetProtocolInfo
mov edi, eax
add edi, 8
cmp dword [ebp - 0x4d4], ebx
je 0x10659ff
push dword [ebp - 0x4d4]
call sub.NMSUPP.dll_FreeMemory
mov dword [ebp - 0x4d4], ebx
lea eax, [ebp - 0x4d4]
push eax
push edi
call fcn.0106bbdf
mov dword [ebp - 0x4e4], ebx
lea edi, [esi + 0x14]
cmp edi, ebx
mov dword [ebp - 0x4dc], ebx
je 0x1065a35
cmp edi, dword [ebp - 0x4e0]
ja 0x1065a35
mov al, byte [edi + 0xe]
and al, 0xf
cmp al, 0xf
jne 0x1065a35
add edi, 0x14
jne 0x1065a1f
cmp dword [0x1086e0c], ebx
jne 0x1065a64
cmp edi, ebx
je 0x1065a64
cmp edi, dword [ebp - 0x4e0]
ja 0x1065a64
xor eax, eax
mov al, byte [edi + 0xe]
and eax, 0xf
cmp ax, word [ebp - 0x4e4]
jbe 0x1065a64
mov dword [ebp - 0x4dc], 1
cmp dword [0x1086e14], ebx
je 0x1065a84
test byte [esi + 0xe], 0xf
jne 0x1065a84
push dword [0x1086e70]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x4d4]
push dword [ebp - 0x4dc]
push esi
call fcn.01065083
cmp dword [0x1086e14], ebx
je 0x1065ab6
test byte [esi + 0xe], 0xf
jne 0x1065ab6
push dword [0x1086e6c]
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x1086e0c], ebx
jne 0x1065b06
cmp edi, ebx
je 0x1065b06
cmp edi, dword [ebp - 0x4e0]
ja 0x1065b06
cmp dword [ebp - 0x4dc], ebx
je 0x1065af8
cmp edi, dword [ebp - 0x4e0]
ja 0x1065b06
mov ax, word [edi + 0xe]
and ax, 0xf
cmp ax, 0xf
je 0x1065af1
cmp ax, word [ebp - 0x4e4]
jbe 0x1065b06
add edi, 0x14
jne 0x1065ad2
jmp 0x1065b06
xor eax, eax
mov al, byte [edi + 0xe]
and eax, 0xf
mov dword [ebp - 0x4e4], eax
cmp edi, dword [ebp - 0x4e0]
mov esi, edi
jbe 0x10659cc
cmp dword [ebp - 0x4d4], ebx
je 0x1065b2d
push dword [ebp - 0x4d4]
call sub.NMSUPP.dll_FreeMemory
mov dword [ebp - 0x4d4], ebx
push dword [ebp - 0x4d0]
call sub.NMAPI.dll_UnlockFrameText
cmp dword [0x1080940], ebx
je 0x1065baf
xor esi, esi
call fcn.01063bb3
push dword [ebp - 0x4d0]
call sub.NMAPI.dll_GetFrameStoredLength
push dword [ebp - 0x4d0]
and al, 0xf
neg al
sbb eax, eax
neg eax
mov dword [ebp - 0x4dc], eax
call sub.NMAPI.dll_GetFrameStoredLength
mov ecx, dword [ebp - 0x4dc]
shr eax, 4
add ecx, eax
mov eax, dword [0x1080954]
cmp eax, 0xffffffff
je 0x1065b86
cmp eax, ecx
jge 0x1065b86
mov ecx, eax
cmp ecx, ebx
je 0x1065baf
mov edi, ecx
lea eax, [ebp - 0xcc]
push eax
push esi
push dword [ebp - 0x4d0]
call fcn.01063ef5
lea eax, [ebp - 0xcc]
push eax
inc esi
call fcn.01064db1
dec edi
jne 0x1065b8c
mov esi, dword [ebp - 0x4d0]
push esi
call sub.NMAPI.dll_UnlockFramePropertyTable
push dword [ebp - 0x4d8]
call sub.NMAPI.dll_ReleaseFrame
mov edi, dword [ebp - 0x4e8]
mov dword [ebp - 0x4d8], esi
mov dword [ebp - 0x4d0], ebx
cmp dword [ebp - 0x4d8], ebx
je 0x1065bf1
push dword [ebp - 0x4d8]
call sub.NMAPI.dll_ReleaseFrame
mov dword [ebp - 0x4d8], ebx
cmp dword [ebp - 0x4d0], ebx
je 0x1065c04
push dword [ebp - 0x4d0]
call sub.NMAPI.dll_ReleaseFrame
cmp dword [0x1086e54], ebx
mov dword [0x1086e4c], ebx
je 0x1065c69
inc edi
mov dword [ebp - 0x4e8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub eax, dword [ebp - 0x4fc]
cmp eax, 0xfa
jbe 0x1065c4b
push edi
push ebx
push dword [ebp - 0x4ec]
call fcn.0106687f
test eax, eax
je 0x1065c45
mov dword [0x1086e54], ebx
mov dword [ebp - 0x4fc], esi
cmp edi, dword [0x1086e2c]
jb 0x10656e8
jmp 0x1065c73
push dword [ebp - 0x4d0]
call sub.NMAPI.dll_ReleaseFrame
jmp 0x1065d08
mov dword [0x1086e4c], 1
cmp dword [0x1086e4c], ebx
jne 0x1065c8a
cmp dword [0x108094c], ebx
je 0x1065c8a
push 1
call fcn.01064cda
cmp dword [0x1086e14], ebx
je 0x1065c9e
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_EndDoc]
push dword [0x1086e2c]
push ebx
push dword [ebp - 0x4ec]
call fcn.0106687f
push dword [ebp - 0x4ec]
call fcn.0106685d
mov edi, dword [ebp - 0x4f8]
xor esi, esi
inc esi
cmp dword [0x1086e14], ebx
je 0x1065cf4
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x1086e58]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x1086f3c]
mov dword [0x1086e58], ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1065d00
push dword [0x1086e30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 0x10