Function at 0x401e90
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x404962
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.componentsIThunderComponent.xpt
lea eax, [esi + 4]
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x3c]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x5c], 0
je 0x401edf
mov edi, eax
lea ebp, [esi + 0x14]
push str.IThunderComponent.xpt
lea ecx, [esp + 0x18]
push ebp
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x401f01
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
call edi
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
xor esi, esi
cmp eax, esi
je 0x401f39
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401f30
cmp al, 0xff
je 0x401f30
dec al
mov byte [ecx], al
jmp 0x401f39
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], esi
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x5c], 0xffffffff
je 0x401f72
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401f69
cmp al, 0xff
je 0x401f69
dec al
mov byte [ecx], al
jmp 0x401f72
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x401f8e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov edx, dword [esp + 0x10]
push str.componentsThunderComponent.dll
lea eax, [esp + 0x48]
push edx
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], 1
cmp eax, esi
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
je 0x401fbc
mov esi, eax
push str.ThunderComponent.dll
lea ecx, [esp + 0x28]
push ebp
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
mov eax, dword [eax + 4]
xor ebp, ebp
add esp, 0xc
cmp eax, ebp
jne 0x401fdd
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
push esi
push eax
call edi
test eax, eax
mov eax, dword [esp + 0x28]
sete bl
cmp eax, ebp
je 0x40200c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402003
cmp al, 0xff
je 0x402003
dec al
mov byte [ecx], al
jmp 0x40200c
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], ebp
cmp eax, ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
je 0x40203d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402034
cmp al, 0xff
je 0x402034
dec al
mov byte [ecx], al
jmp 0x40203d
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x54]
xor eax, eax
pop edi
pop esi
test bl, bl
pop ebp
pop ebx
setne al
mov dword fs:[0], ecx
add esp, 0x50
ret