Function at 0x40d4a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449884
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x458
test eax, eax
je 0x40d7ba
push edi
mov edi, dword [esp + 0x470]
test edi, edi
je 0x40d7b9
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 0x40d7b6
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 0x40d7b6
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 0x40d7b6
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 0x4561f0
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 0x40d7a5
mov eax, dword [0x47afc0]
test eax, eax
je 0x40d672
mov ecx, 0x4eeeac
call fcn.0040c350
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x40d672
xor ebp, ebp
mov eax, dword [0x4eeeb0]
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 0x40d644
test al, al
je 0x40d640
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x40d644
add ecx, 2
add esi, 2
test al, al
jne 0x40d620
xor eax, eax
jmp 0x40d649
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], 3
je 0x40d7cf
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 0x40d5f5
or ebp, 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.0040c530
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 [0x47afb8]
test eax, eax
je 0x40d6db
push 0
push str.DebugSet
lea eax, [esp + 0x70]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x47afbc]
test eax, eax
je 0x40d702
lea ecx, [esp + 0x68]
push ecx
push 0x450f48
mov ecx, 0x4eee74
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.0040cc30
add esp, 0xc
mov eax, dword [0x47afc0]
test eax, eax
je 0x40d73f
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, 0x4eeeac
mov byte [esp + 0x474], 6
call fcn.0040d410
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 [0x47afc4]
test eax, eax
je 0x40d7a5
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40d7a5
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 0x40d760
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 0x40d785
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 0x40d7a5