Function at 0x458030
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac280
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4ff4f4]
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 + 8]
mov eax, edi
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x45806e
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x458747
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x458089
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x4580af
cmp dword [esi + 0x14], 8
jb 0x458098
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4580a0
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x458747
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x4580d2
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.004561f0
add esp, 8
test eax, eax
je 0x458175
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 1
jb 0x458107
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.004561f0
add esp, 8
lea ecx, [ebp - 0x40]
test eax, eax
je 0x458170
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x58]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push dword [ebp - 0x48]
push eax
call fcn.00450910
add esp, 0x10
test eax, eax
jne 0x458182
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45814c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x45815b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x458163
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x40]
call fcn.004068c0
lea ecx, [ebp - 0x58]
call fcn.004068c0
jmp 0x458747
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a230
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0043bfb0
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 2
sete bl
cmp edx, 0x10
jb 0x45820e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458204
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458765
push edx
push ecx
call fcn.0043ac72
add esp, 8
test bl, bl
jne 0x458413
lea ecx, [ebp - 0xac]
call fcn.0044e1a0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xac]
call fcn.0044ef30
test al, al
je 0x458408
call fcn.00407b60
mov ecx, eax
test ecx, ecx
je 0x45876a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x4c0678
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.00407810
test al, al
jne 0x458283
push 0
push 0x4c0678
lea ecx, [ebp - 0x8c]
call fcn.00408a90
push 7
push str.version
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a230
push 0xfde9
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xac]
call fcn.0044ed40
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x458306
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4582fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458774
push edx
push ecx
call fcn.0043ac72
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x8c]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45833c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a230
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043bfb0
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 0xb
sete al
mov byte [ebp - 0x89], al
cmp edx, 0x10
jb 0x4583da
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4583ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458779
push edx
push ecx
call fcn.0043ac72
mov al, byte [ebp - 0x89]
add esp, 8
test al, al
je 0x458420
lea ecx, [ebp - 0x88]
call fcn.004068c0
mov edx, dword [ebp - 0x94]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x458408
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.0044bbd0
lea ecx, [ebp - 0x70]
call fcn.004068c0
jmp 0x45816d
lea ecx, [ebp - 0xc4]
call fcn.0044e1a0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xc4]
call fcn.0044ef30
test al, al
jne 0x458452
lea ecx, [ebp - 0xc4]
call fcn.0044bbd0
jmp 0x4583de
call fcn.00407b60
mov ecx, eax
test ecx, ecx
je 0x45877e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x4c0678
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
call fcn.00407810
test al, al
jne 0x458499
push 0
push 0x4c0678
lea ecx, [ebp - 0x8c]
call fcn.00408a90
push 7
push str.version
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a230
push 0xfde9
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xac]
call fcn.0044ed40
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x45851c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458512
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458788
push edx
push ecx
call fcn.0043ac72
add esp, 8
mov edx, dword [ebp - 0x8c]
mov eax, ebx
mov dword [ebp - 0x18], 0
add edx, 0xfffffff0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xd
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45854f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x45878d
mov ecx, dword [ebp - 0x94]
mov edx, eax
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
mov eax, dword [ebp - 0x90]
jne 0x4585af
cmp word [ecx], 0
je 0x4585ab
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
mov word [ebp - 0x8a], ax
mov eax, dword [ebp - 0x90]
jne 0x4585af
add ecx, 4
add edx, 4
cmp word [ebp - 0x8a], 0
jne 0x458570
xor ecx, ecx
jmp 0x4585b4
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jg 0x4585be
cmp dword [eax - 0xc], 0
jne 0x4585ef
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4585c8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4585d7
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4585df
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x90]
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458606
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc4]
call fcn.0044bbd0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x45864c
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458642
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458797
push edx
push ecx
call fcn.0043ac72
add esp, 8
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x78], 0
add edx, 0xfffffff0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x458680
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.0044bbd0
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x4586bf
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4586b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45879c
push edx
push ecx
call fcn.0043ac72
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x458705
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4586fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4587a1
push edx
push ecx
call fcn.0043ac72
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x458747
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45873d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4587a6
push edx
push ecx
call fcn.0043ac72
add esp, 8
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.0043af28
mov esp, ebp
pop ebp
ret 8
call fcn.0046a2d8
push 0x80004005
call fcn.004075c0
call fcn.0046a2d8
call fcn.0046a2d8
push 0x80004005
call fcn.004075c0
call fcn.0046a2d8
push 0x80004005
call fcn.004075c0
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
int3