Function at 0x40d430
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4497a4
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x458
test eax, eax
je 0x40d74a
push edi
mov edi, dword [esp + 0x470]
test edi, edi
je 0x40d749
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 0x40d746
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 0x40d746
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 0x40d746
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 0x456198
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 0x40d735
mov eax, dword [0x47a6b0]
test eax, eax
je 0x40d602
mov ecx, 0x4edb7c
call fcn.0040c2e0
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x40d602
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 0x40d5d4
test al, al
je 0x40d5d0
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x40d5d4
add ecx, 2
add esi, 2
test al, al
jne 0x40d5b0
xor eax, eax
jmp 0x40d5d9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], 3
je 0x40d75f
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 0x40d585
or ebp, 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.0040c4c0
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 0x40d66b
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 0x40d692
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.0040cbc0
add esp, 0xc
mov eax, dword [0x47a6b0]
test eax, eax
je 0x40d6cf
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.0040d3a0
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 0x40d735
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40d735
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 0x40d6f0
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 0x40d715
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 0x40d735