Function at 0x415c5b
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x640], ecx
push esi
push 0x4265a0
mov dword [ebp - 0x62c], esi
call sub.msvcrt.dll__setjmp3
pop ecx
pop ecx
test eax, eax
jne 0x41b652
mov ecx, dword [ebp - 0x640]
xor edx, edx
push esi
mov ecx, dword [ecx + 0x3c]
call fcn.00402014
mov edi, eax
mov ecx, edi
call fcn.00405a82
mov ebx, eax
mov dword [ebp - 0x628], ebx
cmp word [edi], si
je 0x41b70c
cmp word [ebx], si
je 0x41b70c
mov ecx, ebx
call fcn.00405a82
cmp word [eax], si
jne 0x41b70c
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x415ce1
sub esi, ecx
mov ecx, edi
sar esi, 1
call fcn.0040220d
push eax
lea edx, [esi + 1]
mov ecx, edi
call fcn.00401da3
mov esi, ebx
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x415d09
sub esi, ecx
mov ecx, ebx
sar esi, 1
call fcn.0040220d
push eax
lea edx, [esi + 1]
mov ecx, ebx
call fcn.00401da3
mov ecx, edi
call fcn.0040b09e
mov ebx, eax
mov dword [ebp - 0x630], ebx
cmp ebx, 1
je 0x41b65a
mov esi, 0x4269e0
lea ecx, [ebp - 0x214]
push esi
mov edx, 0x104
call fcn.00401da3
push esi
mov edx, 0x104
lea ecx, [ebp - 0x41c]
call fcn.00401da3
lea esi, [ebp - 0x214]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x415d74
mov eax, dword [ebx + 0x18]
sub esi, ecx
sar esi, 1
test byte [eax], 0x10
jne 0x41b665
push dword [ebx + 0x10]
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.00402c8a
test byte [ebx + 0x1c], 8
je 0x41b68b
mov eax, dword [ebp - 0x628]
push 0x3a
pop ebx
cmp word [eax + 2], bx
je 0x41b70c
push 0x5c
pop edx
mov ecx, eax
call fcn.004024b1
test eax, eax
jne 0x41b70c
mov ax, word [0x4269e0]
push 0x2a
mov word [ebp - 0x624], ax
pop eax
mov word [ebp - 0xc], ax
push 0x3f
mov word [ebp - 0x622], bx
mov ebx, edi
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x415e00
sub ebx, ecx
lea edx, [ebp - 0xc]
mov ecx, edi
sar ebx, 1
call fcn.00402ef8
cmp eax, ebx
lea ecx, [ebp - 0x634]
mov ebx, dword [ebp - 0x630]
push 0x20
pop eax
push ecx
push dword [ebx + 0x18]
sbb edi, edi
mov dword [ebp - 0x63c], eax
mov edx, eax
lea ecx, [ebp - 0x214]
neg edi
call fcn.00408792
test al, al
je 0x41b6b8
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x41b81e
mov edi, dword [ebp - 0x634]
lea edx, [ebp - 0x214]
add edx, eax
xor eax, eax
mov dword [ebp - 0x630], edx
mov dword [ebp - 0x638], eax
mov word [edx], ax
cmp dword [0x426124], 0
jne 0x41b839
mov eax, dword [ebx + 0x18]
test byte [eax], 0x10
jne 0x41b716
xor eax, eax
lea ecx, [ebp - 0x214]
mov word [edx], ax
mov edx, 0x104
mov eax, dword [ebx + 0x18]
add eax, 0x2c
push eax
call fcn.00402c8a
push dword [ebp - 0x630]
lea ecx, [ebp - 0x624]
push dword [ebp - 0x628]
call fcn.00413566
lea ecx, [ebp - 0x624]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x62c]
jne 0x415ecf
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 0x104
add eax, esi
cmp eax, ecx
ja 0x41b823
xor eax, eax
mov edx, ecx
mov word [ebp + esi*2 - 0x41c], ax
lea ecx, [ebp - 0x41c]
lea eax, [ebp - 0x624]
push eax
call fcn.00402c8a
push 2
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileWithProgressW]
test eax, eax
je 0x41b7e5
mov edx, dword [ebx + 0x18]
mov ecx, fcn.00402fb0
push edi
push dword [ebp - 0x63c]
call fcn.0040b003
test al, al
jne 0x41b813
mov ecx, edi
call fcn.00402fd4
call fcn.0040b1ec
mov ecx, dword [ebp - 0x638]
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x415f69
mov ecx, dword [0x4260a4]
call fcn.00411b7c
dec esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x41b81e
xor ecx, ecx
mov word [ebp + eax - 0x214], cx
mov word [ebp + eax - 0x41c], cx
jmp 0x415da2
lea ecx, [ebp - 0x214]
call fcn.0040220d
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
mov ecx, dword [ebx + 0x18]
mov dword [ecx], eax
mov eax, dword [ebx + 0x18]
cmp dword [eax], 0xffffffff
jne 0x415dac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
jmp 0x41b660
push 0x10
pop eax
lea ecx, [ebp - 0x634]
mov dword [ebp - 0x63c], eax
push ecx
push dword [ebx + 0x18]
mov edx, eax
lea ecx, [ebp - 0x214]
call fcn.00408792
test al, al
jne 0x41b6f9
mov ecx, dword [0x4260a4]
cmp ecx, 0x12
jne 0x41b660
push 2
pop ecx
mov dword [0x4260a4], ecx
jmp 0x41b660
test edi, edi
je 0x415e4d
mov ecx, dword [ebp - 0x634]
call fcn.00402fd4
mov ecx, 0x232a
jmp 0x41b660
push 0x5c
pop edx
lea ecx, [ebp - 0x41c]
call fcn.00402580
test eax, eax
je 0x41b823
mov edx, dword [ebp - 0x628]
add eax, 2
xor ecx, ecx
mov dword [ebp - 0x648], eax
mov word [eax], cx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x62c]
jne 0x41b743
sub edx, ecx
lea ecx, [ebp - 0x41c]
lea eax, [ecx + 2]
sar edx, 1
mov dword [ebp - 0x644], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x62c]
jne 0x41b765
sub ecx, dword [ebp - 0x644]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x104
ja 0x41b823
mov ecx, dword [ebp - 0x648]
lea edx, [ebp - 0x41c]
push dword [ebp - 0x628]
mov eax, ecx
sub eax, edx
mov edx, 0x104
sar eax, 1
sub edx, eax
call fcn.00401da3
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x62c]
jne 0x41b7b9
sub ecx, edx
sar ecx, 1
add ecx, ecx
cmp ecx, 0x208
jae 0x41b81e
xor eax, eax
mov word [ebp + ecx - 0x41c], ax
jmp 0x415f12
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [ebp - 0x638], eax
cmp eax, 0xb7
jne 0x41b803
mov eax, 0x234d
mov dword [ebp - 0x638], eax
xor ecx, ecx
push ecx
push eax
call fcn.0040bd02
pop ecx
pop ecx
jmp 0x415f34
mov edx, dword [ebp - 0x630]
jmp 0x415e7a
call fcn.0041c651
mov ecx, edi
call fcn.00402fd4
call fcn.0040b1ec
mov ecx, 0x232e
jmp 0x41b660
mov ecx, edi
call fcn.00402fd4
call fcn.0040b1ec
jmp 0x41b652