Function at 0x10033560
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100403fb
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x1004f0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], ecx
mov ecx, dword [ebp + 0xc]
call fcn.1001d220
movzx eax, al
test eax, eax
jne 0x100335af
mov ecx, dword [ebp + 8]
call fcn.1001d220
movzx ecx, al
test ecx, ecx
je 0x100335b6
xor eax, eax
jmp 0x100337aa
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.1002ec90
add esp, 0xc
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KwLib.dll_int___cdecl_KwLib::Dir::IsExistFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 4
test eax, eax
je 0x10033757
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xcc]
call fcn.100337d0
test eax, eax
je 0x10033626
mov dword [ebp - 0xd4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100033c0
mov eax, dword [ebp - 0xd4]
jmp 0x100337aa
lea ecx, [ebp - 0x40]
call fcn.10013b10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.10013b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.10013b10
mov byte [ebp - 4], 3
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KwLib.dll_int___cdecl_KwLib::Dir::GetFileExtension_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
add esp, 8
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KwLib.dll_int___cdecl_KwLib::Dir::GetFileNameWithoutExtension_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
add esp, 8
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KwLib.dll_int___cdecl_KwLib::Dir::GetFilePath_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
add esp, 8
push 1
lea ecx, [ebp - 0x40]
call fcn.1001c660
push eax
push str._s_d
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::StringUtility::Format_char_const__]
add esp, 0x10
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.10015190
lea ecx, [ebp - 0x88]
call fcn.100033c0
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.1002ec90
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xc0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.1002ebd0
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x28]
call fcn.10015190
lea ecx, [ebp - 0xb8]
call fcn.100033c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.100033c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.100033c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.100033c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100033c0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KwLib.dll_int___cdecl_KwLib::Dir::IsDirectory_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 4
test eax, eax
jne 0x10033775
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KwLib.dll_int___cdecl_KwLib::Dir::MakeDir_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 4
push 0
lea ecx, [ebp - 0x28]
call fcn.1001c660
push eax
mov ecx, dword [ebp + 8]
call fcn.1001c660
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100033c0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003b334
mov esp, ebp
pop ebp
ret 0x14