Function at 0x439f30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498b45
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b50a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], edi
test edi, edi
je 0x439f7f
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov eax, edx
and al, 3
cmp al, 2
setne cl
test dl, 4
je 0x43a169
mov dword [ebp - 0x40], 0xffffffff
or esi, 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], esi
cmp dword [ebx + 0x14], 8
mov edx, ebx
mov byte [ebp - 4], 1
jb 0x439fb8
mov edx, dword [ebx]
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439fe0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0x80000000
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x43a06c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x43a05e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43a26c
push edx
push ecx
call fcn.0042fe99
add esp, 8
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
je 0x43a1f2
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x43a1f2
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x43a099
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00432d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0x80000000
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x43a0e8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00426ab1
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x43a12f
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x43a1f2
mov eax, dword [ebp - 0x50]
xor ebx, ebx
or ebx, dword [ebp - 0x54]
xor edx, edx
or edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x30]
cmp dword [ebp - 0x48], eax
jb 0x43a20d
ja 0x43a12f
cmp edx, dword [ebp - 0x38]
jbe 0x43a20d
mov dword [ebp - 0x30], 0
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xa
cmp esi, 0xffffffff
je 0x43a14c
push esi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [ebp - 4], 0xb
call eax
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov dword [ebp - 0x30], 0
and eax, 0x18
mov dword [ebp - 0x2c], 0x43c5a0
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
cmove edx, dword [ebp - 0x30]
test eax, 0x18
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
cmove eax, dword [ebp - 0x30]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], esi
jb 0x43a1b5
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x43a1bf
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push edx
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x43a232
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x43a1e8
cmp eax, 0xb7
jne 0x43a239
test byte [ebp + 0x10], 1
je 0x43a239
xor al, al
jmp 0x43a250
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.boost::filesystem::copy_file
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
push ebx
push eax
call fcn.00442040
add esp, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 8
cmp esi, 0xffffffff
je 0x43a21f
push esi
call ebx
mov dword [ebp - 4], 9
cmp edi, 0xffffffff
je 0x43a1ee
push edi
call ebx
xor al, al
jmp 0x43a250
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x43a24e
push str.boost::filesystem::copy_file
push edi
push esi
push ebx
push eax
call fcn.00442040
add esp, 0x14
xor al, al
jmp 0x43a250
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042feac
mov esp, ebp
pop ebp
ret
call fcn.00451c51
int3