Function at 0x40d4d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4497d4
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x458
test eax, eax
je 0x40d7ea
push edi
mov edi, dword [esp + 0x470]
test edi, edi
je 0x40d7e9
push ebx
push ebp
push esi
push str.null
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push edi
push eax
mov dword [esp + 0x478], 0
call esi
or ebp, 0xffffffff
add esp, 8
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x470], ebp
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
jne 0x40d7e6
push str.NULL
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push edi
push eax
mov dword [esp + 0x478], 1
call esi
add esp, 8
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x470], ebp
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
jne 0x40d7e6
push str.Null
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push edi
push eax
mov dword [esp + 0x478], 2
call esi
add esp, 8
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x470], ebp
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
jne 0x40d7e6
push edi
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0x456190
lea ecx, [esp + 0x54]
mov dword [esp + 0x478], 3
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
je 0x40d7d5
mov eax, dword [0x47a6b0]
test eax, eax
je 0x40d6a2
mov ecx, 0x4edb7c
call fcn.0040c380
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x40d6a2
xor ebp, ebp
mov eax, dword [0x4edb80]
add eax, ebp
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], 4
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov esi, eax
mov ecx, edi
lea ecx, [ecx]
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [esi]
jne 0x40d674
test al, al
je 0x40d670
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x40d674
add ecx, 2
add esi, 2
test al, al
jne 0x40d650
xor eax, eax
jmp 0x40d679
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], 3
je 0x40d7ff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x10]
inc ebx
add ebp, 0x1c
cmp ebx, eax
jb 0x40d625
or ebp, 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.0040c560
add esp, 4
mov ecx, dword [esp + 0x478]
push edi
push ecx
mov ecx, eax
mov byte [esp + 0x478], 5
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea edx, [esp + 0x74]
push str._sFile_Error__Function:_s_FileName:_s
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [0x47a6a8]
test eax, eax
je 0x40d70b
push 0
push str.DebugSet
lea eax, [esp + 0x70]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x47a6ac]
test eax, eax
je 0x40d732
lea ecx, [esp + 0x68]
push ecx
push 0x450f48
mov ecx, 0x4edb44
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.0040cc60
add esp, 0xc
mov eax, dword [0x47a6b0]
test eax, eax
je 0x40d76f
push edi
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x30]
push edx
mov ecx, 0x4edb7c
mov byte [esp + 0x474], 6
call fcn.0040d440
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [0x47a6b4]
test eax, eax
je 0x40d7d5
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40d7d5
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d790
sub eax, edx
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40d7b5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x470], ebp
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
add esp, 0x464
ret
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or ebp, 0xffffffff
jmp 0x40d7d5