Function at 0x404350
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x423ee5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.00403bf0
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x14], eax
push ebx
call fcn.00401d60
mov ebp, dword [esp + 0xb8]
mov edi, eax
push ebp
call fcn.00401d60
mov esi, eax
add esp, 8
test esi, esi
je 0x4045ed
test edi, edi
je 0x4045ed
push ebx
call fcn.004040c0
add esp, 4
test eax, eax
jne 0x4045ed
lea ecx, [esp + 0x70]
mov dword [esp + 0x18], 0x42623c
call fcn.00403640
mov dword [esp + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x10], 1
push 0
push 1
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0xbc], 0
call fcn.00404990
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0xb0], 1
call fcn.00403670
mov ecx, dword [esp + 0x18]
mov byte [esp + 0xac], 2
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x18], 0x426238
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x404467
mov eax, dword [esp + 0x14]
push 0x22
push eax
call fcn.004120d3
add esp, 8
test eax, eax
je 0x404467
push 1
push eax
lea ecx, [esp + 0x24]
call fcn.00404b40
lea ecx, [esp + 0x1c]
call fcn.00404f80
lea ecx, [esp + 0x1c]
test ecx, ecx
jne 0x40447b
mov edx, dword [esp + 0x18]
push 0
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x20]
call fcn.00401fd0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], 3
mov eax, dword [ecx + 4]
mov ecx, dword [esp + eax + 0x1c]
test cl, 6
je 0x4044d9
lea edx, [esp + 0x70]
mov dword [esp + eax + 0x18], 0x426238
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 4
call fcn.004022b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x18], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
jmp 0x4045dc
push ebp
call fcn.00401d30
add esp, 4
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.00404670
push ebx
call fcn.00401d30
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
call fcn.00404670
push ebx
call fcn.00401d30
mov edi, dword [0x42c0e4]
or ebp, 0xffffffff
mov dword [0x430558], eax
mov ecx, ebp
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 8
mov edx, ecx
mov esi, edi
mov edi, 0x43055c
push 0x430558
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00404670
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x404570
push eax
call fcn.00409618
add esp, 4
test eax, eax
jne 0x404570
push 2
push eax
lea ecx, [esp + 0x24]
call fcn.00404b40
lea eax, [esp + 0x1c]
test eax, eax
jne 0x404589
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x20]
lea ecx, [esp + edx + 0x1c]
or al, 2
push eax
call fcn.00403fd0
mov eax, dword [esp + 0x14]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x4045f1
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x70]
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x18], 0x426238
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 5
call fcn.004022b0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], ebp
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x18], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.00411edc
xor eax, eax
jmp 0x404640
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x18], 0x426238
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 6
call fcn.004022b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], ebp
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x18], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x70]
call fcn.00401fc0
mov eax, 1
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret