Function at 0x40b810
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4360c0]
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
push 0x43272c
lea eax, [ebp - 0x4ac]
push 0x4397cc
push eax
mov dword [ebp - 0x4a4], 0
call fcn.00407400
add esp, 0xc
push str.SetupTmpCDict_recommend_
lea eax, [ebp - 0x4a8]
push 0x4397e8
push eax
mov dword [ebp - 4], 0
call fcn.00407400
add esp, 0xc
mov eax, 0x5c
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x432728
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4b0]
push eax
mov byte [ebp - 4], 2
call fcn.00407400
add esp, 0xc
push str..qpyd
push eax
lea eax, [ebp - 0x47c]
push eax
mov byte [ebp - 4], 3
call fcn.00407400
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4b0]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40b8f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x484], esi
mov byte [ebp - 4], 6
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x490], eax
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48c], eax
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x47c]
lea ecx, [ebp - 0x478]
call fcn.004028c0
test eax, eax
je 0x40bb81
nop
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.00407400
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x47c]
lea edx, [ecx - 0x10]
add ebx, 0xfffffff0
cmp edx, ebx
je 0x40b9f4
cmp dword [ebx + 0xc], 0
jl 0x40b9e5
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40b9e5
push edx
call fcn.00407780
mov dword [ebp - 0x494], eax
add esp, 4
mov eax, edi
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40b9d4
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x494]
add eax, 0x10
mov dword [ebp - 0x47c], eax
jmp 0x40b9f4
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x47c]
call fcn.00402320
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x498]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ba17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x47c]
lea edx, [ebp - 0x490]
call fcn.004046e0
test eax, eax
je 0x40bb53
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x480]
push 0x4397e4
push eax
call fcn.00407340
add esp, 0xc
push str..qpyd
push eax
lea eax, [ebp - 0x49c]
push eax
mov byte [ebp - 4], 9
call fcn.00407400
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
lea ebx, [esi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40bacb
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x40bab6
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40bab6
push edx
call fcn.00407780
mov dword [ebp - 0x494], eax
add esp, 4
mov eax, edi
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40baa5
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x494]
add esi, 0x10
mov dword [ebp - 0x484], esi
jmp 0x40bacb
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x484]
call fcn.00402320
mov esi, dword [ebp - 0x484]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x49c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40baee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x480]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bb11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp - 0x488]
test eax, eax
jne 0x40bb59
mov edx, dword [ebp - 0x48c]
push ecx
mov ecx, dword [ebp - 0x490]
push ebx
call fcn.00404d40
add esp, 8
push 1
push esi
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x4a4], 1
jmp 0x40bb59
mov ebx, dword [ebp - 0x488]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bb87
cmp dword [ebp - 0x18], 0
je 0x40bb87
lea ecx, [ebp - 0x478]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40b970
jmp 0x40bb87
mov ebx, dword [ebp - 0x488]
push 0x432728
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.00407400
add esp, 0xc
push str..qpyd
push eax
lea eax, [ebp - 0x494]
push eax
mov byte [ebp - 4], 0xb
call fcn.00407400
add esp, 0xc
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
mov ecx, dword [ebp - 0x47c]
lea eax, [edx - 0x10]
mov dword [ebp - 0x480], eax
add ecx, 0xfffffff0
lea eax, [edx - 0x10]
mov dword [ebp - 0x498], ecx
cmp eax, ecx
je 0x40bc4f
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
mov dword [ebp - 0x49c], ebx
mov ebx, dword [ebp - 0x488]
jl 0x40bc40
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40bc40
mov eax, dword [ebp - 0x480]
push eax
call fcn.00407780
mov ecx, dword [ebp - 0x49c]
mov dword [ebp - 0x480], eax
add esp, 4
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40bc2f
mov edx, dword [ebp - 0x498]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x480]
add eax, 0x10
mov dword [ebp - 0x47c], eax
jmp 0x40bc4f
push dword [edx - 0xc]
lea ecx, [ebp - 0x47c]
push edx
call fcn.00402320
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x494]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bc72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x4a0]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bc95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x47c]
lea ecx, [ebp - 0x478]
call fcn.004028c0
test eax, eax
je 0x40bebf
mov edi, edi
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00407400
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x47c]
lea edx, [ecx - 0x10]
add ebx, 0xfffffff0
cmp edx, ebx
je 0x40bd34
cmp dword [ebx + 0xc], 0
jl 0x40bd25
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40bd25
push edx
call fcn.00407780
mov dword [ebp - 0x4a0], eax
add esp, 4
mov eax, edi
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40bd14
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4a0]
add eax, 0x10
mov dword [ebp - 0x47c], eax
jmp 0x40bd34
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x47c]
call fcn.00402320
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x480]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bd57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x47c]
lea edx, [ebp - 0x490]
call fcn.004046e0
test eax, eax
je 0x40be93
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x498]
push 0x4397e4
push eax
call fcn.00407340
add esp, 0xc
push str..qpyd
push eax
lea eax, [ebp - 0x49c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00407400
add esp, 0xc
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
lea ebx, [esi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40be0b
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x40bdf6
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40bdf6
push edx
call fcn.00407780
mov dword [ebp - 0x4a0], eax
add esp, 4
mov eax, edi
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40bde5
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x4a0]
add esi, 0x10
mov dword [ebp - 0x484], esi
jmp 0x40be0b
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x484]
call fcn.00402320
mov esi, dword [ebp - 0x484]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x49c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40be2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x498]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40be51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp - 0x488]
test eax, eax
jne 0x40be99
mov edx, dword [ebp - 0x48c]
push ecx
mov ecx, dword [ebp - 0x490]
push ebx
call fcn.00404d40
add esp, 8
push 1
push esi
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x4a4], 1
jmp 0x40be99
mov ebx, dword [ebp - 0x488]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bebf
cmp dword [ebp - 0x18], 0
je 0x40bebf
lea ecx, [ebp - 0x478]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40bcb0
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bedc
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40befb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bf1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bf37
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bf5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x40bf7b
cmp eax, 0xffffffff
je 0x40bf7b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4a8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bf9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x4ac]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40bfc2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4a4]
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.00413156
mov esp, ebp
pop ebp
ret