Function at 0x409b27
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
mov dword [ebp - 0x58], 0xdc
mov dword [ebp - 0x4c], 0xf3
mov dword [ebp - 4], 0x18
mov dword [ebp - 0x14], 0xec
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x14]
mov dword [0x41a0e8], eax
mov esi, dword [0x41a0e8]
add esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp + 0xc]
add esp, 4
cmp esi, eax
je 0x409b78
mov dword [ebp - 0x18], 1
jmp 0x409b7f
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
je 0x409bc5
mov edx, dword [0x41a0cc]
push edx
call fcn.0040f477
add esp, 4
test eax, eax
jne 0x409baf
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp + 0xc]
add esp, 4
test eax, eax
jne 0x409baf
mov dword [ebp - 0x1c], 0
jmp 0x409bb6
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x409bc5
mov dword [ebp - 0x20], 1
jmp 0x409bcc
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test eax, eax
jne 0x409bf4
mov edx, dword [ebp - 4]
and edx, dword [0x41a0d4]
mov dword [0x41a0c0], edx
jne 0x409bf4
mov dword [ebp - 0x24], 0
jmp 0x409bfb
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jne 0x409c0c
mov dword [ebp - 0x28], 1
jmp 0x409c13
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
jne 0x409c59
mov ecx, dword [0x41a0c0]
push ecx
call dword [ebp + 0xc]
add esp, 4
mov esi, eax
mov edx, dword [0x41a0f0]
push edx
mov eax, dword [0x41a0cc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
cmp esi, eax
jae 0x409c48
mov dword [ebp - 0x2c], 1
jmp 0x409c4f
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
je 0x409df6
mov dword [ebp - 0x30], 0xcb
mov dword [ebp - 0x5c], 0x8d
mov ecx, dword [0x41a0e8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x409c97
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [0x41a104]
push eax
mov ecx, dword [0x41a0f4]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x409cb8
mov dword [ebp - 0x60], 0x9f
mov dword [ebp - 0x64], 0x68
mov eax, dword [0x41a104]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x41a0e0], eax
jmp 0x409cdc
mov dword [ebp - 0x68], 0x79
mov ecx, dword [0x41a100]
push ecx
mov edx, dword [0x41a0e0]
push edx
mov eax, dword [0x41a0e0]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x41a0dc]
imul ecx, dword [0x41a0ec]
mov dword [0x41a0c0], ecx
mov edx, dword [ebp - 0x30]
imul edx, dword [ebp - 4]
cmp dword [0x41a0c0], edx
jae 0x409d07
mov dword [ebp - 0x34], 1
jmp 0x409d0e
mov dword [ebp - 0x34], 0
push fcn.0040bb57
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0040e947
add esp, 8
mov esi, eax
mov ecx, dword [0x41a100]
push ecx
call fcn.0040f477
add esp, 4
cmp esi, eax
jae 0x409d3d
mov dword [ebp - 0x38], 1
jmp 0x409d44
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x38]
je 0x409d55
mov dword [ebp - 0x3c], 1
jmp 0x409d5c
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
jne 0x409da4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409d97
mov ecx, dword [0x41a104]
push ecx
mov edx, dword [0x41a0d4]
push edx
mov eax, dword [0x41a0d0]
push eax
call dword [sym.imp.GDI32.dll_PolylineTo]
test eax, eax
je 0x409d97
mov dword [ebp - 0x40], 1
jmp 0x409d9e
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
je 0x409dc0
mov dword [ebp - 0x6c], 0x54
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41a0f4], eax
jmp 0x409dcd
mov eax, dword [0x41a0f8]
and eax, dword [ebp - 0x44]
mov dword [0x41a104], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
mov dword [0x41a0d0], eax
push fcn.0040f477
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040d977
add esp, 8
jmp 0x409b58
mov eax, dword [0x41a100]
xor edx, edx
div dword [0x41a0f8]
mov dword [0x41a0c0], eax
mov ecx, dword [0x41a0fc]
mov dword [ebp - 0x10], ecx
jmp 0x409e1c
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x41a0dc]
jae 0x409f17
mov dword [ebp - 0x70], 0xcb
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 7
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xaa
ja case.0x409e58.1
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x409f47]
jmp dword [ecx*4 + 0x409f2b]
mov dword [ebp - 0x74], 0xbb
mov dword [ebp - 0x78], 0x14
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x41a0d0]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41a0fc], eax
jmp 0x409f12
mov eax, dword [0x41a0c0]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov dword [0x41a0c4], eax
jmp 0x409f12
mov ecx, dword [0x41a100]
mov dword [0x41a0dc], ecx
mov edx, dword [0x41a0dc]
mov dword [0x41a0d8], edx
jmp 0x409f12
mov dword [ebp - 0x50], 0x5d
mov eax, dword [0x41a0c8]
xor eax, dword [0x41a0d4]
mov dword [ebp - 0x50], eax
jmp 0x409f12
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [str.a6_b_], edx
jmp 0x409f12
mov dword [ebp - 0x80], 0x2d
mov eax, dword [0x41a0f8]
or eax, dword [ebp - 0x84]
mov dword [ebp - 0x48], eax
jmp 0x409f12
mov dword [ebp - 0x54], 0x24
mov eax, dword [0x41a0dc]
xor edx, edx
div dword [0x41a0c4]
mov dword [ebp - 0x54], eax
jmp 0x409e13
mov ecx, dword [0x41a0ec]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
pop esi
mov esp, ebp
pop ebp
ret