Function at 0x40cb60
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589a24
mov eax, dword fs:[0]
push eax
mov eax, 0x4308
call fcn.00552760
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4288], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42a8], eax
mov eax, dword [ebp + 0x14]
push 0x4018
mov dword [ebp - 0x42b4], eax
lea eax, [ebp - 0x4248]
push 0
push eax
mov dword [ebp - 0x4298], 0
mov dword [ebp - 0x42a4], 0
movq qword [ebp - 0x42a0], xmm0
mov dword [ebp - 0x424c], 0
call fcn.00557d70
push 0x4c
lea eax, [ebp - 0x4310]
mov dword [ebp - 0x4314], 0
push 0
push eax
call fcn.00557d70
mov dword [ebp - 0x4258], 0
mov dword [ebp - 0x428c], 0
mov dword [ebp - 0x427c], 0
mov dword [ebp - 0x4278], 0
mov dword [ebp - 0x4274], 0
lea eax, [ebp - 0x429c]
mov dword [ebp - 4], 0
push esi
push eax
mov dword [ebp - 0x42b0], 0xffffffff
mov dword [ebp - 0x4270], 0
mov dword [ebp - 0x42ac], 0
mov dword [ebp - 0x4264], fcn.00404e30
mov dword [ebp - 0x4260], fcn.00404e50
mov dword [ebp - 0x42c4], fcn.00404e30
mov dword [ebp - 0x42c0], fcn.00404e50
call fcn.00405d80
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x4254], edi
test edi, edi
jne 0x40cd11
lea eax, [ebp - 0x42a4]
push eax
call fcn.00405bf0
lea eax, [ebp - 0x424c]
push edi
push eax
call fcn.00408a60
lea eax, [ebp - 0x42a4]
mov dword [ebp - 0x423c], eax
lea eax, [ebp - 0x424c]
push eax
call fcn.00408a90
add esp, 0x10
call fcn.00404f20
lea eax, [ebp - 0x4314]
push eax
call fcn.00406290
lea eax, [ebp - 0x42c4]
push eax
lea eax, [ebp - 0x4264]
push eax
lea eax, [ebp - 0x424c]
push eax
lea eax, [ebp - 0x4314]
push eax
call fcn.00406300
add esp, 0x14
mov dword [ebp - 0x4254], eax
mov edi, eax
call fcn.0040d9d0
mov ecx, dword [eax + 0x228]
lea esi, [eax + 0x224]
mov eax, dword [esi]
cmp eax, ecx
je 0x40cd38
push esi
push ecx
push eax
call fcn.0040b7e0
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
test edi, edi
jne 0x40d8c3
xor esi, esi
mov dword [ebp - 0x426c], esi
cmp dword [ebp - 0x42f8], esi
jbe 0x40d854
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00557d70
push dword [ebp - 0x42a8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005611a7
push 0
push dword [ebp - 0x426c]
lea eax, [ebp - 0x4314]
shl esi, 5
add esi, dword [ebp - 0x4304]
push eax
mov dword [ebp - 0x4294], 0
mov dword [ebp - 0x4290], 0
call fcn.00406240
mov edi, eax
add esp, 0x24
cmp edi, dword [ebp - 0x428c]
jbe 0x40ce1a
push dword [ebp - 0x4258]
push 0
call fcn.00404e50
lea eax, [edi + edi]
mov dword [ebp - 0x428c], edi
push eax
push 0
call fcn.00404e30
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x4258], edi
test edi, edi
jne 0x40ce20
push dword [ebp - 0x4270]
lea eax, [ebp - 0x4264]
mov dword [ebp - 0x4254], 1
push eax
call dword [ebp - 0x4260]
add esp, 8
jmp 0x40d8c9
mov edi, dword [ebp - 0x4258]
push edi
mov edi, dword [ebp - 0x426c]
lea eax, [ebp - 0x4314]
push edi
push eax
call fcn.00406240
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x4258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp byte [esi + 0x19], 0
jne 0x40d678
lea eax, [ebp - 0x42c4]
push eax
lea eax, [ebp - 0x4264]
push eax
lea eax, [ebp - 0x4290]
push eax
lea eax, [ebp - 0x4294]
push eax
lea eax, [ebp - 0x42ac]
push eax
lea eax, [ebp - 0x4270]
push eax
lea eax, [ebp - 0x42b0]
push eax
push edi
lea eax, [ebp - 0x424c]
push eax
lea eax, [ebp - 0x4314]
push eax
call fcn.00405dc0
mov edi, eax
add esp, 0x28
mov dword [ebp - 0x4254], edi
test edi, edi
jne 0x40d8ad
mov eax, dword [0x5f0130]
lea esi, [ebp - 0x218]
mov dword [ebp - 0x4250], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40cec0
sub esi, ecx
sar esi, 1
je 0x40cf15
lea eax, [esi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x40cf15
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], cx
lea ecx, [eax + 0xc]
lea eax, [esi + esi]
mov dword [ebp - 0x4250], ecx
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.005577f0
add esp, 0xc
lea eax, [ebp - 0x4250]
mov byte [ebp - 4], 1
push eax
call fcn.0040c4b0
add esp, 4
mov ecx, dword [ebp - 0x4250]
add ecx, 0xfffffff4
mov byte [ebp - 4], 2
cmp ecx, dword [0x5f012c]
je 0x40cf52
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40cf52
push ecx
call fcn.00408c50
add esp, 4
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d0c2
mov edi, dword [ebp - 0x42b4]
test edi, edi
je 0x40d0c2
mov esi, dword [ebp - 0x4258]
xorps xmm0, xmm0
mov ecx, esi
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cfa2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
mov eax, dword [0x5f0130]
mov dword [ebp - 0x4250], eax
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
cmova eax, dword [ebp - 0x230]
push eax
push edi
push 0x599ba0
lea eax, [ebp - 0x42b8]
push eax
lea eax, [ebp - 0x4250]
push eax
call fcn.0040c5f0
add esp, 0x14
mov ecx, dword [ebp - 0x42b8]
add ecx, 0xfffffff4
mov byte [ebp - 4], 5
cmp ecx, dword [0x5f012c]
je 0x40d028
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d028
push ecx
call fcn.00408c50
add esp, 4
lea eax, [ebp - 0x4250]
mov byte [ebp - 4], 4
push eax
call fcn.0040c4b0
mov esi, dword [ebp - 0x4250]
lea eax, [ebp - 0x218]
add esp, 4
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
add esi, 0xfffffff4
mov byte [ebp - 4], 6
cmp esi, dword [0x5f012c]
je 0x40d075
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40d075
push esi
call fcn.00408c50
add esp, 4
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40d1ac
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d0b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9c3
push ecx
push edx
call fcn.0055241f
add esp, 8
jmp 0x40d1ac
mov esi, dword [0x5f0130]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x4250], esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x40d0d7
sub edi, ecx
sar edi, 1
je 0x40d12c
lea eax, [edi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x40d12c
mov dword [eax], 1
lea esi, [eax + 0xc]
mov dword [eax + 4], edi
xor ecx, ecx
mov dword [eax + 8], edi
mov word [eax + edi*2 + 0xc], cx
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x4250], esi
push eax
push esi
call fcn.005577f0
add esp, 0xc
mov ecx, dword [ebp - 0x4278]
mov byte [ebp - 4], 7
cmp ecx, dword [ebp - 0x4274]
je 0x40d16b
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
jl 0x40d155
mov dword [ecx], esi
lock inc dword [eax]
add dword [ebp - 0x4278], 4
jmp 0x40d184
mov eax, dword [0x5f0130]
push esi
mov dword [ecx], eax
call fcn.0040c0e0
add dword [ebp - 0x4278], 4
jmp 0x40d184
lea eax, [ebp - 0x4250]
push eax
push ecx
lea ecx, [ebp - 0x427c]
call fcn.0040b850
mov esi, dword [ebp - 0x4250]
add esi, 0xfffffff4
mov byte [ebp - 4], 8
cmp esi, dword [0x5f012c]
je 0x40d1a8
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40d1a8
push esi
call fcn.00408c50
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [0x5f0130]
lea esi, [ebp - 0x218]
mov dword [ebp - 0x4284], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d1c0
sub esi, ecx
sar esi, 1
je 0x40d215
lea eax, [esi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x40d215
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], cx
lea ecx, [eax + 0xc]
lea eax, [esi + esi]
mov dword [ebp - 0x4284], ecx
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.005577f0
add esp, 0xc
mov esi, dword [0x5f0130]
push 0x16
mov byte [ebp - 4], 9
mov dword [ebp - 0x425c], esi
call fcn.00440020
add esp, 4
test eax, eax
je 0x40d266
mov dword [eax], 1
lea esi, [eax + 0xc]
mov dword [eax + 4], 4
xor ecx, ecx
mov dword [eax + 8], 4
mov word [eax + 0x14], cx
mov eax, dword [str..tmp]
mov ecx, dword [0x599bb0]
mov dword [esi], eax
mov dword [ebp - 0x425c], esi
mov dword [esi + 4], ecx
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x4284]
mov byte [ebp - 4], 0xa
call fcn.0040c430
add esi, 0xfffffff4
mov byte [ebp - 4], 0xb
cmp esi, dword [0x5f012c]
je 0x40d29d
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40d29d
push esi
call fcn.00408c50
add esp, 4
mov eax, dword [ebp - 0x4290]
mov edi, dword [ebp - 0x4284]
push 0
push 0x80
push 2
push 0
mov dword [ebp - 0x4250], eax
mov eax, dword [ebp - 0x4294]
add eax, dword [ebp - 0x4270]
push 0
push 0x40000000
push edi
mov dword [ebp - 0x4280], eax
mov dword [ebp - 0x4254], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d2f7
mov dword [ebp - 0x4254], 1
jmp 0x40d344
push 0
lea eax, [ebp - 0x425c]
mov dword [ebp - 0x425c], 0
push eax
push dword [ebp - 0x4250]
push dword [ebp - 0x4280]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4250]
mov ecx, 1
cmp dword [ebp - 0x425c], eax
mov eax, dword [ebp - 0x4254]
cmovne eax, ecx
push esi
mov dword [ebp - 0x4254], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40d64b
nop dword [eax]
mov eax, dword [0x5f0130]
mov dword [ebp - 0x425c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_Is_Busy__Retry___d_
lea eax, [ebp - 0x42bc]
push eax
lea eax, [ebp - 0x425c]
push eax
call fcn.0040c5f0
add esp, 0x14
mov ecx, dword [ebp - 0x42bc]
add ecx, 0xfffffff4
mov byte [ebp - 4], 0xd
cmp ecx, dword [0x5f012c]
je 0x40d3c2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d3c2
push ecx
call fcn.00408c50
add esp, 4
mov esi, dword [0x5f0130]
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xc
lea edx, [eax + 2]
mov dword [ebp - 0x4250], esi
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d3e0
sub eax, edx
mov ecx, esi
sar eax, 1
mov dword [ebp - 0x4280], eax
je 0x40d448
lea eax, [eax*2 + 0xe]
push eax
call fcn.00440020
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40d446
mov eax, dword [ebp - 0x4280]
lea esi, [ecx + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
mov dword [ecx + 8], eax
mov dword [ecx], 1
mov word [ecx + eax*2 + 0xc], dx
mov ecx, esi
add eax, eax
mov dword [ebp - 0x4250], esi
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.005577f0
add esp, 0xc
mov ecx, esi
cmp dword [ecx - 8], 0
mov byte [ebp - 4], 0xe
jl 0x40d5e5
push str..exe
push esi
call fcn.005582d2
add esp, 8
test eax, eax
je 0x40d5e5
sub eax, esi
sar eax, 1
js 0x40d5e5
push 0x5c
push esi
call fcn.0055822f
add esp, 8
test eax, eax
jne 0x40d48a
or eax, 0xffffffff
jmp 0x40d48e
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [esi - 8]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x4268]
push eax
lea ecx, [ebp - 0x4250]
call fcn.0040c790
or dword [ebp - 0x4298], 1
mov eax, dword [ebp - 0x4268]
mov byte [ebp - 4], 0xf
cmp esi, eax
je 0x40d51f
mov ecx, dword [0x5f012c]
add esi, 0xfffffff4
cmp dword [esi], 0
jge 0x40d4d1
cmp esi, ecx
jne 0x40d4d7
cmp dword [eax - 0xc], 0
jge 0x40d4ee
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x4250]
call fcn.0040c370
mov esi, dword [ebp - 0x4250]
jmp 0x40d519
cmp esi, ecx
je 0x40d50d
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40d507
push esi
call fcn.00408c50
add esp, 4
mov eax, dword [ebp - 0x4268]
mov esi, eax
mov dword [ebp - 0x4250], esi
lock inc dword [eax - 0xc]
mov eax, dword [ebp - 0x4268]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 0x10
cmp ecx, dword [0x5f012c]
je 0x40d543
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d543
push ecx
call fcn.00408c50
add esp, 4
mov ecx, esi
mov byte [ebp - 4], 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d570
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x11
push 0
push eax
call fcn.00431920
mov ecx, dword [ebp - 0x21c]
add esp, 8
mov byte [ebp - 4], 0xe
cmp ecx, 7
jbe 0x40d5e5
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d5db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9c3
push ecx
push edx
call fcn.0055241f
add esp, 8
add esi, 0xfffffff4
mov byte [ebp - 4], 0x12
cmp esi, dword [0x5f012c]
je 0x40d609
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40d609
push esi
call fcn.00408c50
add esp, 4
mov ecx, dword [ebp - 0x425c]
add ecx, 0xfffffff4
mov byte [ebp - 4], 0x13
cmp ecx, dword [0x5f012c]
je 0x40d633
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d633
push ecx
call fcn.00408c50
add esp, 4
push 1
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40d360
add edi, 0xfffffff4
mov byte [ebp - 4], 0x14
cmp edi, dword [0x5f012c]
je 0x40d66f
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d66f
push edi
call fcn.00408c50
add esp, 4
mov byte [ebp - 4], 0
jmp 0x40d719
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d6a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x15
push eax
call fcn.00430310
mov ecx, dword [ebp - 0x21c]
add esp, 4
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40d719
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d70f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9c3
push ecx
push edx
call fcn.0055241f
add esp, 8
call fcn.0040d9d0
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
mov esi, eax
lea edx, [ecx + 2]
movups xmmword [ebp - 0x230], xmm0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d747
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
mov eax, dword [esi + 0x228]
mov byte [ebp - 4], 0x16
cmp eax, dword [esi + 0x22c]
je 0x40d7a9
movups xmm0, xmmword [ebp - 0x230]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 0x228], 0x18
mov word [ebp - 0x230], ax
jmp 0x40d7c2
lea ecx, [ebp - 0x230]
push ecx
push eax
lea ecx, [esi + 0x224]
call fcn.0040bab0
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40d800
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d7f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9c3
push ecx
push edx
call fcn.0055241f
add esp, 8
mov edi, dword [ebp - 0x4254]
test edi, edi
jne 0x40d854
push dword [ebp - 0x4288]
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [ebp - 0x426c]
test eax, eax
je 0x40d83b
push dword [ebp - 0x42f8]
lea eax, [esi + 1]
push eax
push 0x401
push dword [ebp - 0x4288]
call dword [sym.imp.USER32.dll_PostMessageW]
inc dword [0x5f9110]
inc esi
mov dword [ebp - 0x426c], esi
cmp esi, dword [ebp - 0x42f8]
jb 0x40cd60
push dword [ebp - 0x4270]
lea eax, [ebp - 0x4264]
push eax
call dword [ebp - 0x4260]
add esp, 8
test edi, edi
jne 0x40d8c3
call fcn.0040d9d0
mov ecx, eax
call fcn.00424300
lea eax, [ebp - 0x4264]
push eax
lea eax, [ebp - 0x4314]
push eax
call fcn.00406180
push dword [ebp - 0x4258]
push edi
call fcn.00404e50
lea eax, [ebp - 0x429c]
push eax
call fcn.00405cd0
add esp, 0x14
jmp 0x40d92b
push dword [ebp - 0x4270]
lea eax, [ebp - 0x4264]
push eax
call dword [ebp - 0x4260]
add esp, 8
mov edi, dword [ebp - 0x4258]
lea ecx, [ebp - 0x4264]
lea eax, [ebp - 0x4314]
push ecx
push eax
lea esi, [ebp - 0x429c]
call fcn.00406180
push edi
push 0
call fcn.00404e50
push esi
call fcn.00405cd0
mov eax, dword [ebp - 0x4278]
add esp, 0x14
mov ecx, dword [ebp - 0x427c]
xor esi, esi
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40d92b
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ecx + esi*4]
call edi
mov eax, dword [ebp - 0x4278]
inc esi
mov ecx, dword [ebp - 0x427c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40d910
mov edi, dword [ebp - 0x4288]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [ebp - 0x4254]
test eax, eax
je 0x40d951
push 0
push esi
push 0x402
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x427c]
test eax, eax
je 0x40d9a6
lea ecx, [ebp - 0x427c]
push ecx
push dword [ebp - 0x4278]
push eax
call fcn.0040b760
mov ecx, dword [ebp - 0x4274]
add esp, 0xc
mov edx, dword [ebp - 0x427c]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x40d99c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9c3
push ecx
push edx
call fcn.0055241f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret
call fcn.0055bf8b
int3