Function at 0x4238a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00417360
movsx eax, byte [0x4319c9]
movsx edx, word [0x4319d4]
mov ecx, eax
push eax
or ecx, 0x6a55ffff
push edx
mov dword [ebp - 4], 0
mov dword [0x4319e8], ecx
call fcn.00410920
mov ecx, dword [0x431a0c]
add esp, 0xc
add ecx, eax
mov eax, dword [ebp - 0x20]
cmp eax, 4
mov dword [0x431a0c], ecx
jbe 0x423e50
mov ax, word [0x4319e4]
mov ecx, dword [0x4319f8]
inc ax
push ecx
add word [0x4319dc], ax
push 0x5169ffff
call fcn.004108e0
mov bl, byte [0x4319cb]
mov dl, byte [0x4319cd]
add esp, 8
add bl, al
mov ecx, 0x431988
mov byte [0x4319cb], bl
push edx
push 1
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_unsigned_int__char_]
mov al, byte [0x4317d8]
sub al, 0x4d
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00428770
mov edi, dword [ebp - 0x20]
mov ecx, esp
mov edx, 0x4317d8
call fcn.00426650
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add edi, 0xfffffffc
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
push ecx
push edi
push edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 1
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
push ecx
push esi
push eax
push 0
mov ecx, edx
call dword [sym.imp.MSVCP60.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_unsigned_int__unsigned_int__char_const___unsigned_int_const]
push 1
lea ecx, [ebp - 0x38]
mov esi, eax
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test esi, esi
je 0x423b3a
mov al, byte [0x4317d8]
mov bl, byte [0x4319c9]
sub al, 0x4d
inc bl
and eax, 0xff
mov byte [0x4319c9], bl
add eax, 3
and al, 0xfc
call fcn.00428770
mov ecx, esp
mov edx, 0x4317d8
call fcn.00426650
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
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]
mov edx, 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]
add esp, 0xc
test eax, eax
jne 0x423a1e
mov eax, edx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x423a27
mov ecx, edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 1
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
movsx eax, byte [0x4319cc]
movsx ecx, word [0x4319e0]
push eax
push ecx
call fcn.004107d0
add word [0x4319e0], ax
mov al, byte [0x4317d8]
sub al, 0x4d
add esp, 8
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00428770
mov ecx, esp
mov edx, 0x4317d8
call fcn.00426650
mov ebx, eax
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x423aa4
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x423ae9
mov ecx, dword [ebp - 0x20]
push 0
lea eax, [ecx + esi]
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x423ae9
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, esi
mov esi, ebx
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
push 0x818dffff
push 0x3ccbffff
call fcn.00410970
mov ecx, dword [0x4319f8]
push 0x30fffff
add ecx, eax
push ecx
mov dword [0x4319f8], ecx
call fcn.004108e0
mov ebx, dword [0x431a08]
mov ecx, dword [0x4319e8]
add ebx, eax
push ecx
push 0xc429ffff
mov dword [0x431a08], ebx
call fcn.00410860
add esp, 0x18
add word [0x4319dc], ax
mov eax, dword [0x43195c]
mov edx, dword [0x43197c]
mov ecx, dword [0x431980]
mov dword [0x43197c], eax
mov eax, dword [0x431960]
mov dword [0x43195c], edx
mov edx, dword [0x431984]
mov dword [0x431980], eax
mov eax, dword [0x431964]
mov dword [0x431960], ecx
mov ecx, dword [0x43199c]
mov dword [0x431984], eax
mov eax, dword [0x431a0c]
mov dword [0x431964], edx
mov edx, dword [0x4319a0]
neg eax
mov word [0x4319d6], ax
mov eax, dword [0x4319bc]
mov dword [0x43199c], eax
mov eax, dword [0x4319c0]
mov dword [0x4319a0], eax
mov eax, dword [0x4319c4]
mov dword [0x4319bc], ecx
mov ecx, dword [0x4319a4]
mov dword [0x4319a4], eax
mov al, byte [0x4317a8]
sub al, 0x4d
mov dword [0x4319c0], edx
and eax, 0xff
mov dword [0x4319c4], ecx
add eax, 3
and al, 0xfc
call fcn.00428770
mov ecx, esp
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, 0x4317a8
call fcn.00426650
push eax
push SysReAllocString
call dword [0x431f2c]
test eax, eax
je 0x423c59
mov al, byte [0x4317a8]
sub al, 0x4d
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00428770
mov ecx, esp
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov edx, 0x4317a8
call fcn.00426650
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x431f2c]
test eax, eax
jne 0x423e3d
mov ecx, dword [0x431a08]
push ecx
push 0x7233ffff
call fcn.00410860
add word [0x4319d8], ax
push 0x9119ffff
push 0x4795ffff
call fcn.00410860
mov bl, byte [0x4319cb]
mov edx, dword [0x4319fc]
add bl, al
push edx
movsx eax, byte [0x4319cc]
push eax
mov byte [0x4319cb], bl
call fcn.00410820
mov cl, byte [ebp - 0xd]
add esp, 0x18
mov byte [ebp - 0x38], cl
lea ecx, [ebp - 0x38]
push 0
mov word [0x4319d2], ax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [0x4319c9]
mov eax, dword [0x431a08]
mov ecx, dword [0x4319ec]
sub dl, al
add word [0x4319d6], 0xfffe
mov byte [0x4319cd], dl
lea edx, [eax + ecx - 0x21720001]
lea eax, [ebp - 0x38]
push eax
push 7
mov byte [ebp - 4], 4
mov dword [0x431a08], edx
call fcn.00410a90
mov ecx, dword [0x4319f8]
push 0xa9e5ffff
push ecx
call fcn.004109b0
mov edx, dword [0x43194c]
mov ecx, dword [0x431950]
mov dword [0x4319ec], eax
mov eax, dword [0x43199c]
mov dword [0x43194c], eax
mov eax, dword [0x4319a0]
mov dword [0x43199c], edx
mov edx, dword [0x431954]
mov dword [0x4319a0], ecx
mov ecx, dword [ebp - 0x24]
mov dword [0x431950], eax
mov eax, dword [0x4319a4]
add esp, 0x10
mov dword [0x4319a4], edx
mov edx, 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]
mov dword [0x431954], eax
test ecx, ecx
mov byte [0x4319ca], 0xff
jne 0x423d6a
mov ecx, edx
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x423d73
mov eax, edx
mov edx, dword [ebp - 0x20]
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [0x431f44]
movsx ecx, word [0x4319da]
push ecx
push 0xbb7ffff
call fcn.00410860
mov ebx, dword [0x4319fc]
mov edx, dword [0x4319f8]
mov ecx, dword [0x431a00]
add ebx, eax
mov eax, dword [0x4319e8]
push ecx
add eax, edx
mov dword [0x4319fc], ebx
movsx edx, byte [0x4319ce]
push edx
mov word [0x4319d6], ax
call fcn.004107d0
mov bl, byte [0x4319ce]
add esp, 0x10
add bl, al
mov eax, dword [ebp - 0x14]
push eax
mov byte [0x4319ce], bl
call dword [0x431f28]
mov ecx, dword [0x431a00]
xor eax, eax
test ecx, ecx
setne al
add word [0x4319d2], ax
push 0x5147ffff
push 0xdc01ffff
call fcn.00410820
mov word [0x4319e2], ax
mov eax, dword [ebp - 0x34]
add esp, 8
mov byte [ebp - 4], 0
test eax, eax
je 0x423e3d
mov cl, byte [eax - 1]
test cl, cl
je 0x423e33
cmp cl, 0xff
je 0x423e33
dec cl
mov byte [eax - 1], cl
jmp 0x423e3d
dec eax
push eax
call fcn.004286a0
add esp, 4
movsx ecx, word [0x4319d8]
or ecx, dword [0x4319fc]
mov dword [0x431a04], ecx
cmp word [0x4319d8], 0
jne 0x423e67
mov al, byte [0x4319cb]
test al, al
jne 0x423e67
xor eax, eax
jmp 0x423e6c
mov eax, 1
add word [0x4319d8], ax
movsx edx, word [0x4319e4]
movsx eax, word [0x4319e0]
push edx
push eax
call fcn.00410860
mov ecx, dword [ebp - 0x24]
add word [0x4319d8], ax
add esp, 8
mov dword [0x4319f4], 0x201ffff
test ecx, ecx
je 0x423ed1
mov al, byte [ecx - 1]
test al, al
je 0x423ec7
cmp al, 0xff
je 0x423ec7
dec al
mov byte [ecx - 1], al
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.004286a0
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret