Function at 0x4200c0
Capabilities:
Copy file
Get disk size
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x439379
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c3740]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov eax, dword [0x4c3740]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5c]
test edi, edi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x1c], esi
je 0x420257
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420110
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x420257
push 0
push 0x80
push 3
push 0
push 3
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420152
mov eax, 0x3f6
jmp 0x42025c
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x420246
mov esi, dword [esp + 0x10]
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
movzx ecx, word [edi]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_]
movzx edx, word [edi + 2]
push edx
lea ecx, [esp + 0x2c]
call dword [0x43e238]
xor eax, eax
cmp dword [esp + 0x40], 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
jae 0x4201ce
lea eax, [esp + 0x2c]
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4201fb
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, 0x3eb
jmp 0x42025c
cmp esi, dword [esp + 0x18]
jb 0x420222
ja 0x420209
cmp ebx, dword [esp + 0x14]
jb 0x420222
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, 0x3ec
jmp 0x42025c
mov edx, dword [esp + 0x1c]
push 0
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x28]
jne 0x42024d
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, 0x3f7
jmp 0x42025c
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
jmp 0x42025c
mov eax, 0x3f5
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00437634
add esp, 0x44
ret 8