Function at 0x40b110
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45dd98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov ebx, dword [ebp + 8]
cmp eax, dword [ebx + 8]
je 0x40b15f
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.00406fc0
xor edi, edi
mov dword [esp + 0x50], edi
lea ecx, [esp + 0x14]
call fcn.00406fc0
mov byte [esp + 0x50], 1
mov eax, dword [ebx + 8]
test eax, eax
jle 0x40b260
test edi, edi
jl 0x40b2c1
cmp edi, eax
jge 0x40b2c1
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
lea esi, [edi*4]
add eax, esi
push 0x46b8e0
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x50], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00406510
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 8]
jge 0x40b2c1
mov eax, dword [eax + 4]
add eax, esi
push 0x46b8e0
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x50], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00406510
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b251
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jl 0x40b187
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
call fcn.0040bb80
lea edx, [esp + 0x14]
push edx
call fcn.0040bb80
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
call fcn.0042f665
test eax, eax
je 0x40b2f3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
je 0x40b2f3
call fcn.0042f665
test eax, eax
je 0x40b2c6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40b2c8
call fcn.0042df48
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b2f3
call fcn.0042f665
test eax, eax
je 0x40b2ea
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40b2ec
xor eax, eax
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
mov ecx, 0x211
push edx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x34], eax
mov word [esp + 0x38], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
cmp dword [esp + 0x36], 1
setne cl
and al, cl
mov byte [esp + 0x13], al
je 0x40b33f
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp dword [edx + 8], ebx
jg 0x40b3a6
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b38c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test ebx, ebx
jl 0x40b2c1
cmp ebx, dword [esi + 8]
jge 0x40b2c1
mov eax, dword [esi + 4]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
lea eax, [eax + ebx*4]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b3e7
cmp eax, dword [esi]
jne 0x40b3e7
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b422
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b493
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00442860
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x1c], edi
mov byte [esp + 0x50], 7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b460
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40b457
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040b4a0
mov edi, dword [esp + 0x20]
add esp, 4
jmp 0x40b460
lea esi, [esp + 0x1c]
call fcn.0040b720
mov byte [esp + 0x50], 1
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b481
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
inc ebx
cmp ebx, dword [ecx + 8]
jl 0x40b3a3
jmp 0x40b33f
call fcn.00406bd0
int3