Function at 0x40f477
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
mov dword [ebp - 0xc], 0x5a
mov eax, dword [0x41a0bc]
push eax
mov ecx, dword [0x41a0d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x41a0dc], eax
mov edx, dword [str.a6_b_]
mov dword [ebp - 8], edx
jmp 0x40f4b4
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x41a0f4]
jae 0x40f5ef
mov dword [ebp - 0x68], 0x21
mov edx, dword [str.a6_b_]
or edx, dword [0x41a0f4]
mov eax, dword [ebp - 0xc]
xor eax, dword [0x41a0e0]
cmp edx, eax
jae 0x40f4ec
mov dword [ebp - 0x10], 1
jmp 0x40f4f3
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x40f545
push fcn.0040f907
mov ecx, dword [0x41a104]
push ecx
mov edx, dword [0x41a0bc]
push edx
call fcn.0040bb57
add esp, 0xc
mov esi, eax
mov eax, dword [0x41a0f4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, eax
jne 0x40f52f
mov dword [ebp - 0x14], 1
jmp 0x40f536
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x40f545
mov dword [ebp - 0x18], 0
jmp 0x40f54c
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [ebp - 0xc]
mov esi, eax
mov ecx, dword [0x41a0c4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp esi, eax
jae 0x40f570
mov dword [ebp - 0x1c], 1
jmp 0x40f577
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
jbe 0x40f5cd
mov eax, dword [0x41a0f8]
push eax
mov ecx, dword [0x41a0c0]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.GDI32.dll_PolylineTo]
mov dword [0x41a0f8], eax
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [0x41a108]
push ecx
call dword [sym.imp.GDI32.dll_SetArcDirection]
mov dword [0x41a0e8], eax
push fcn.0040f907
mov edx, dword [0x41a0f4]
push edx
mov eax, dword [str.a6_b_]
push eax
call fcn.0040bb57
add esp, 0xc
jmp 0x40f5ea
mov dword [ebp - 0x6c], 0x73
mov ecx, dword [0x41a0e0]
push ecx
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x41a0c8], eax
jmp 0x40f4ab
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
mov ecx, dword [0x41a0cc]
push ecx
mov edx, dword [0x41a0dc]
push edx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
cmp esi, eax
jne 0x40f61c
mov dword [ebp - 0x20], 1
jmp 0x40f623
mov dword [ebp - 0x20], 0
mov eax, dword [0x41a0cc]
add eax, dword [0x41a0d4]
mov dword [0x41a100], eax
mov ecx, dword [0x41a104]
add ecx, dword [0x41a0d0]
cmp dword [0x41a100], ecx
jne 0x40f650
mov dword [ebp - 0x24], 1
jmp 0x40f657
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x24]
je 0x40f668
mov dword [ebp - 0x28], 1
jmp 0x40f66f
mov dword [ebp - 0x28], 0
mov eax, dword [0x41a0f0]
and eax, dword [ebp - 0x5c]
je 0x40f690
mov eax, dword [0x41a100]
xor edx, edx
div dword [ebp - 0xc]
test eax, eax
je 0x40f690
mov dword [ebp - 0x2c], 1
jmp 0x40f697
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x2c]
je 0x40f8f7
mov dword [ebp - 4], 0x16
mov edx, dword [0x41a0d8]
add edx, dword [ebp - 4]
mov dword [0x41a0ec], edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0040f907
add esp, 4
cmp dword [0x41a0ec], eax
je 0x40f6d6
mov dword [ebp - 0x30], 1
jmp 0x40f6dd
mov dword [ebp - 0x30], 0
mov ecx, dword [0x41a0d8]
push ecx
call fcn.0040f907
add esp, 4
mov esi, eax
push fcn.0040f907
mov edx, dword [0x41a0c0]
push edx
mov eax, dword [0x41a0d8]
push eax
call fcn.0040bb57
add esp, 0xc
cmp esi, eax
je 0x40f715
mov dword [ebp - 0x34], 1
jmp 0x40f71c
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x34]
jne 0x40f72d
mov dword [ebp - 0x38], 1
jmp 0x40f734
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x40f78b
mov edx, dword [0x41a0e8]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test eax, eax
je 0x40f775
mov eax, dword [0x41a0c8]
push eax
mov ecx, dword [0x41a0f0]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [0x41a0f0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x40f775
mov dword [ebp - 0x40], 1
jmp 0x40f77c
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
je 0x40f78b
mov dword [ebp - 0x44], 1
jmp 0x40f792
mov dword [ebp - 0x44], 0
mov ecx, dword [0x41a0d4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, eax
mov edx, dword [ebp - 0x64]
push edx
call fcn.0040f907
add esp, 4
cmp esi, eax
jae 0x40f7ba
mov dword [ebp - 0x48], 1
jmp 0x40f7c1
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
jbe 0x40f7ff
mov dword [ebp - 0x78], 0x98
mov ecx, dword [0x41a0ec]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x41a104], eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x7c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x41a0c8], eax
jmp 0x40f6aa
mov ecx, dword [0x41a0fc]
add ecx, dword [0x41a0bc]
mov dword [ebp - 4], ecx
mov edx, dword [str.a6_b_]
push edx
mov eax, dword [0x41a0d0]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.GDI32.dll_PolylineTo]
mov edx, dword [0x41a0d0]
xor edx, dword [0x41a0d8]
cmp eax, edx
je 0x40f83e
mov dword [ebp - 0x4c], 1
jmp 0x40f845
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jne 0x40f88a
mov eax, dword [str.a6_b_]
add eax, dword [0x41a0ec]
je 0x40f874
mov ecx, dword [0x41a0d8]
push ecx
call fcn.0040f907
add esp, 4
test eax, eax
je 0x40f874
mov dword [ebp - 0x50], 1
jmp 0x40f87b
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0
jne 0x40f88a
mov dword [ebp - 0x54], 0
jmp 0x40f891
mov dword [ebp - 0x54], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, dword [ebp - 0x80]
xor ecx, dword [0x41a0fc]
cmp eax, ecx
jae 0x40f8b1
mov dword [ebp - 0x58], 1
jmp 0x40f8b8
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x58]
jne 0x40f8f2
mov dword [ebp - 0x84], 0xbe
mov dword [ebp - 0x88], 0x72
mov dword [ebp - 0x8c], 0xef
mov eax, dword [0x41a0d4]
imul eax, dword [0x41a0bc]
mov dword [ebp + 8], eax
jmp 0x40f80e
jmp 0x40f5ef
mov eax, dword [0x41a0e0]
xor eax, dword [ebp - 0x90]
pop esi
mov esp, ebp
pop ebp
ret