Function at 0x45f230
Capabilities:
Copy file
Create directory
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470783
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x40], eax
mov eax, vtable.MemoryControl.0
mov esi, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ebx
push ebx
push edi
mov byte [esp + 0xc8], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045d5d0
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x54]
mov ebx, eax
call fcn.0045d5d0
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
push eax
push ebx
push ecx
mov ecx, esi
call edx
test al, al
jne 0x45f335
mov eax, dword [esp + 0x54]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x45f320
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x45f32e
push eax
call esi
add esp, 4
xor al, al
jmp 0x45f8f3
xor esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
mov ecx, ebx
call fcn.00460bd0
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
call fcn.00460bd0
add esp, 4
push edi
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0xc0], 4
xor ebx, ebx
mov dword [esp + 0x14], esi
jmp 0x45f3a0
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
mov esi, dword [esp + 0x20]
je 0x45f584
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x45f584
test ecx, ecx
mov edx, dword [esp + 0x14]
lea edi, [edx + ecx]
je 0x45f3f3
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45f3fd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + ecx + 0x14]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov edx, dword [ecx]
push edx
push 0x478908
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
add esi, 0xffffffff
cmp eax, esi
jne 0x45f52a
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
mov esi, dword [esp + 0x8c]
push ecx
push 0x478908
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
add esi, 0xffffffff
cmp eax, esi
jne 0x45f498
mov edx, dword [esp + 0x8c]
add edx, 0xffffffff
push edx
push 0
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc4], 5
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0xc0], 6
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x45f4d4
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45f4de
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add edx, esi
push edx
lea ecx, [esp + 0x60]
call dword [0x47477c]
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x45f4fe
lea eax, [esp + 0x60]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45f518
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45f539
lea ecx, [esp + 0x5c]
mov byte [esp + 0xc0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add dword [esp + 0x14], 0x1c
add ebx, 1
xor esi, esi
jmp 0x45f3a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xc0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ebx, [esp + 0x18]
mov byte [esp + 0xc0], 2
call fcn.0045cf00
lea ebx, [esp + 0x30]
mov byte [esp + 0xc0], 1
call fcn.0045cf00
jmp 0x45f30c
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
lea esp, [esp]
cmp ecx, edi
je 0x45f83d
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x45f83b
test ecx, ecx
mov eax, dword [esp + 0x14]
lea edi, [eax + ecx]
je 0x45f5db
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45f5e5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + ecx + 0x14]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push 0x478908
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
add esi, 0xffffffff
cmp eax, esi
je 0x45f824
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov edx, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 8
call dword [0x474790]
mov esi, dword [esp + 0x1c]
xor edi, edi
cmp esi, edi
je 0x45f66a
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45f674
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, esi
push eax
lea ecx, [esp + 0x60]
call dword [0x47477c]
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x45f6bc
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45f6c6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add edx, esi
push edx
lea ecx, [esp + 0x98]
call dword [0x47477c]
mov ecx, dword [esp + 0x98]
mov eax, 8
cmp dword [esp + 0xac], eax
jae 0x45f6f6
lea ecx, [esp + 0x98]
cmp dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
jae 0x45f704
lea eax, [esp + 0x60]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
jne 0x45f7fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
mov byte [esp + 0xc0], 7
lea ecx, [esp + 0x94]
je 0x45f80c
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xc0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0xc0], 2
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x45f792
mov ebx, dword [esp + 0x20]
cmp esi, ebx
je 0x45f789
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, ebx
jne 0x45f776
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov byte [esp + 0xc0], 1
mov esi, dword [esp + 0x34]
cmp esi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x45f7d2
mov ebx, dword [esp + 0x38]
cmp esi, ebx
je 0x45f7c9
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, ebx
jne 0x45f7b6
mov esi, dword [esp + 0x34]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, edi
mov esi, dword [sym.imp.MSVCR80.dll_free]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
je 0x45f7f2
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, edi
jmp 0x45f326
mov byte [esp + 0xc0], 7
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xc0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add dword [esp + 0x14], 0x1c
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ebx, 1
xor edi, edi
jmp 0x45f590
xor edi, edi
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0xc0], 2
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x45f883
mov ebx, dword [esp + 0x20]
cmp esi, ebx
je 0x45f87a
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, ebx
jne 0x45f867
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov byte [esp + 0xc0], 1
mov esi, dword [esp + 0x34]
cmp esi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x45f8c3
mov ebx, dword [esp + 0x38]
cmp esi, ebx
je 0x45f8ba
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, ebx
jne 0x45f8a7
mov esi, dword [esp + 0x34]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, edi
mov esi, dword [sym.imp.MSVCR80.dll_free]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
je 0x45f8e3
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x45f8f1
push eax
call esi
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret 8