Function at 0x40fd93
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
push ebx
push esi
push edi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
mov dword [0x53101c], 0
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x40fe74
mov eax, 0x2714
jmp 0x41140a
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40fef6
xor eax, eax
mov ax, word [0x531afc]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ax, word [0x531af8]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 0xa0], eax
cmp dword [0x531b4c], 0
je 0x40fecf
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 0x138], eax
jmp 0x40fed9
mov dword [ebp - 0x138], 0
cmp dword [ebp - 0x9c], 0
je 0x40fef0
mov dword [ebp - 0x138], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x138], 0
je 0x40fff9
mov dword [ebp - 0x88], 0
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ffac
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x40ffa6
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffff
jbe 0x40ff60
mov dword [ebp - 0x7c], 0xffff
mov eax, dword [ebp - 0x7c]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00522244
add esp, 0xc
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x88], 0
je 0x40ffe4
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004dcd0f
add esp, 8
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40ffee
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x94]
jmp 0x41140a
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x20], 0
jne 0x41002f
cmp dword [ebp - 0x9c], 0
jne 0x41002f
mov dword [ebp - 0x580], 1
jmp 0x410039
mov dword [ebp - 0x580], 0
lea eax, [ebp - 0x128]
push eax
push 1
lea eax, [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x580]
push eax
mov eax, dword [ebp - 0x144]
push eax
call fcn.004ae123
add esp, 0x14
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x94], 0
jne 0x410083
xor eax, eax
jmp 0x41140a
cmp dword [ebp - 0x128], 0
je 0x4100a1
push 0x16
call fcn.0049c6f9
add esp, 4
xor eax, eax
jmp 0x41140a
mov eax, dword [ebp - 0x168]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 0x570], eax
movsx eax, word [ebp - 0x168]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0xa0], 0
jne 0x4100f9
cmp dword [ebp - 0x20], 0
jne 0x4100f9
cmp dword [ebp - 0x9c], 0
je 0x4112e0
push 1
call fcn.0049c470
add esp, 4
lea eax, [ebp - 0xa4]
push eax
push 0x6a
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410134
jmp 0x4112e0
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x144]
movsx eax, word [eax]
mov ecx, dword [ebp - 0x64]
movsx ecx, word [ecx + 0x10]
cmp eax, ecx
je 0x410168
mov dword [ebp - 0xc], 1
jmp 0x41016f
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x16]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xa4]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4101b0
push 0x20
call fcn.0049c6f9
add esp, 4
jmp 0x4112e0
lea eax, [ebp - 0x80]
push eax
push 0x69
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4101de
jmp 0x4112e0
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
sub eax, 0x10
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
push eax
call fcn.004e3c00
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410221
jmp 0x4112e0
mov eax, dword [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x80]
push eax
call fcn.004795d7
add esp, 8
lea eax, [ebp - 0x6c]
push eax
push 0x6f
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410262
jmp 0x4112e0
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x94], 0
je 0x41028a
jmp 0x4112e0
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004795d7
add esp, 8
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0047947b
add esp, 4
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1c6]
push eax
mov eax, dword [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0xb6]
push eax
call fcn.004deea1
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4102f2
jmp 0x4112e0
mov eax, dword [ebp - 0x80]
push eax
call fcn.0047947b
add esp, 4
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x158]
push eax
call fcn.004dd77f
add esp, 4
mov dword [ebp - 0x158], 0
lea eax, [ebp - 0x38]
push eax
push 0x67
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x41034c
jmp 0x4112e0
mov eax, dword [ebp - 0x144]
add eax, 0xce
push eax
push 0x67
push 0x64
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476c98
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410392
mov eax, dword [ebp - 0x38]
push eax
call fcn.0047947b
add esp, 4
jmp 0x4112e0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0xce]
push eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0040e6fd
add esp, 0x14
test eax, eax
je 0x4103ce
lea eax, [ebp - 0x120]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0xce]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x41041e
cmp dword [ebp - 0x10], 0
je 0x41040d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
jmp 0x41140a
cmp dword [ebp - 0x20], 0
je 0x4104c4
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x568]
push eax
mov eax, dword [ebp - 0x144]
push eax
call fcn.0040f62a
add esp, 0xc
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x41045a
jmp 0x4112e0
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x568]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040f9d7
add esp, 0x20
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x10], 0
je 0x4104af
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x94]
jmp 0x41140a
mov eax, dword [ebp - 0x144]
add eax, 0x1be
push eax
push 0x68
push 0x64
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476c98
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4104fe
jmp 0x4112e0
push 9
mov eax, dword [ebp - 0x144]
push eax
call fcn.004ae4ca
add esp, 8
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410527
jmp 0x4112e0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x568]
push eax
mov eax, dword [ebp - 0x144]
push eax
call fcn.0040f62a
add esp, 0xc
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410559
jmp 0x4112e0
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d6]
push eax
call fcn.0047557c
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x41058d
jmp 0x4112e0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
call fcn.0047557c
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x4105da
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
push eax
call fcn.0047557c
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x94], 0
je 0x4105ff
jmp 0x4112e0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x570]
push eax
push 0x65
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410639
jmp 0x4112e0
push 0xc
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004e3c00
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x41066a
jmp 0x4112e0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [eax], 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x8c]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0047557c
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4106c6
jmp 0x4112e0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1be]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1be]
push eax
call fcn.0047557c
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410708
jmp 0x4112e0
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
inc eax
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004379c0
add esp, 8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x2c]
and eax, 0x10
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x34], 0x22
jne 0x410775
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x8c]
dec eax
mov dword [ebp - 0x57c], eax
jmp 0x410781
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x57c], eax
mov eax, dword [ebp - 0x57c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004379c0
add esp, 8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x58]
add eax, dword [ecx + 0x108]
inc eax
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x15c]
push eax
push 0x66
mov eax, dword [ebp + 0xc]
push eax
call fcn.0047a899
add esp, 0xc
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4107f2
jmp 0x4112e0
cmp dword [ebp - 0x15c], 1
jne 0x410a2a
cmp dword [ebp - 0x78], 0
jne 0x410a2a
mov dword [ebp - 0x54], 1
lea eax, [ebp - 0x70]
push eax
push 0
push 0x66
mov eax, dword [ebp + 0xc]
push eax
call fcn.0047a9aa
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x41083c
jmp 0x4112e0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x70]
push eax
push 0x66
mov eax, dword [ebp + 0xc]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x41086a
jmp 0x4112e0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x160]
push eax
push 0x66
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x4109c6
mov eax, dword [ebp - 0x30]
push eax
call fcn.0047557c
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.004796fa
add esp, 4
cmp dword [ebp - 0x94], 0
jne 0x410957
cmp dword [ebp - 0x150], 0
je 0x41090e
push 1
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d97b5
add esp, 8
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0040dcae
add esp, 0x10
mov dword [ebp - 0x94], eax
jmp 0x410957
mov eax, dword [ebp - 0x38]
push eax
call fcn.00438897
add esp, 4
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.0047566d
add esp, 8
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x410957
mov eax, dword [ebp - 0x30]
push eax
call fcn.00438897
add esp, 4
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0047954d
add esp, 0xc
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x568]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x68]
push eax
call fcn.0040e00b
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.0040935b
add esp, 0xc
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x4109ba
push 1
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x144]
push eax
call fcn.0040e126
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x94], 0
je 0x4109e4
jmp 0x4112e0
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004379c0
add esp, 8
mov dword [ebp - 0x58], eax
push 1
push 2
mov eax, dword [ebp - 0x58]
add eax, 0x2c
push eax
call fcn.004e43fc
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x54], 0
jne 0x4110ff
mov eax, dword [ebp - 0x57c]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x164], 0xffffffff
je 0x410b43
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.0042932d
add esp, 0xc
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410a85
jmp 0x4112e0
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0047947b
add esp, 4
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x164]
push eax
push 0x65
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410ace
jmp 0x4112e0
mov eax, dword [ebp - 0x8c]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0047557c
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410b04
jmp 0x4112e0
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0xffffffff
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x144]
push eax
call fcn.0044a6f9
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x94], 0
je 0x410bf0
jmp 0x4112e0
cmp dword [ebp - 0x50], 0
je 0x410c10
mov eax, dword [ebp - 0x50]
lea eax, [eax*4 + 4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x154]
push eax
push 0x65
mov eax, dword [ebp + 0xc]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410c44
jmp 0x4112e0
cmp dword [ebp - 4], 0
je 0x410c60
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x48], eax
jmp 0x410c67
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x140]
push eax
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040f279
add esp, 0x48
mov dword [ebp - 0x94], eax
cmp dword [ebp - 4], 0
je 0x410ec8
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x124], eax
jmp 0x410d18
inc dword [ebp - 0x124]
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x16c]
cmp eax, dword [ebp - 0x124]
jle 0x410e94
mov eax, dword [ebp - 0x124]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x44]
cmp dword [eax + ecx + 0xd0], 0
jl 0x410e8f
mov eax, dword [ebp - 0x124]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + ecx + 0xd0]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x124]
mov edx, ecx
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*4]
shl ecx, 4
mov edx, dword [ebp - 0x44]
mov dword [ecx + edx + 0xd0], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x124]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + ecx + 0xd0]
push eax
push 0x66
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x410e66
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 0x14]
push eax
push 0x65
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x410e50
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004379c0
add esp, 8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
inc dword [eax + 0x90]
mov eax, dword [ebp - 0x74]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x38]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x410e8f
mov eax, dword [ebp - 0x124]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov dword [eax + ecx + 0xd0], 0xffffffff
jmp 0x410d12
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x90]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x94], 0
je 0x410ee9
jmp 0x4112e0
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x70]
push eax
push 0x65
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410f20
jmp 0x4112e0
push 0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1be]
push eax
mov eax, dword [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00427fca
add esp, 0x18
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x410f6e
jmp 0x4112e0
cmp dword [ebp - 0x164], 0xffffffff
je 0x411063
push 0xffffffffffffffff
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1be]
push eax
push 1
mov eax, dword [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.004191f5
add esp, 0x18
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x410fe7
lea eax, [ebp - 0x56c]
push eax
mov eax, dword [ebp - 0x570]
push eax
push 0x65
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x41105e
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movsx eax, word [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
push 1
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x56c]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.004281fa
add esp, 0x1c
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x56c]
push eax
call fcn.0047947b
add esp, 4
jmp 0x4110ed
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004379c0
add esp, 8
mov dword [ebp - 0x58], eax
push 1
push 8
mov eax, dword [ebp - 0x58]
add eax, 0x2c
push eax
call fcn.004e43fc
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
push 1
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.004281fa
add esp, 0x1c
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x94], 0
je 0x4110ff
jmp 0x4112e0
push 1
push 8
push 1
push 2
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.004381f6
add esp, 0x18
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp - 0x144]
add eax, 0xd6
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0xde]
push eax
push 0x65
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476c98
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x411174
jmp 0x4112e0
mov eax, dword [ebp - 0x144]
test byte [eax + 0x23], 8
je 0x4111ee
mov eax, dword [ebp + 8]
mov dword [ebp - 0x574], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x578], eax
lea eax, [ebp - 0x134]
push eax
call fcn.004fb666
add esp, 4
lea eax, [ebp - 0x148]
push eax
push 0
push 0
mov eax, dword [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
push eax
push 0
lea eax, [ebp - 0x578]
push eax
call fcn.0050763a
add esp, 0x20
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4111ee
jmp 0x4112e0
push 1
mov eax, dword [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0xd6]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043f494
add esp, 0x14
mov dword [ebp - 0x3c], eax
push 1
push 0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0xd6]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1d2]
push eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x26]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004375be
add esp, 0x18
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x3c], 0
je 0x41126c
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x94], eax
jmp 0x41127f
cmp dword [ebp - 0x40], 0
je 0x41127f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x411299
cmp dword [ebp - 0x94], 0xffffffff
jne 0x4112e0
push 1
push 0xffffffffffffffff
push 0x6c
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x6e
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041a77f
add esp, 0xc
cmp dword [ebp - 0x28], 0
je 0x4112f4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10], 0
je 0x411308
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x8c], 0
je 0x411324
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0x1be]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x68], 0
je 0x41134d
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x6c], 0
je 0x411363
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x80], 0
je 0x411379
mov eax, dword [ebp - 0x80]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x158], 0
je 0x411395
mov eax, dword [ebp - 0x158]
push eax
call fcn.004dd77f
add esp, 4
cmp dword [ebp - 0x94], 0
je 0x4113e0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00407c0a
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4113d3
push 1
push 0x40
mov eax, dword [ebp - 0x144]
add eax, 0x22
push eax
call fcn.004e43fc
add esp, 0xc
mov eax, dword [ebp - 0x144]
mov dword [eax + 0x4a], 0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 0xd6]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x94]
jmp 0x41140a
pop edi
pop esi
pop ebx
leave
ret