Function at 0x407c30
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f845d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407c86
xor bl, bl
jmp 0x407f07
mov ecx, dword [ebp + 0x1c]
mov eax, bind
sub eax, ecx
cmp eax, 4
jb 0x407f5b
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 4
cmovae eax, dword [ebp + 0xc]
push str..tmp
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.004065c0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x5187c4
cmovae eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
call fcn.004cff0c
mov eax, dword [ebp - 0x34]
add esp, 0xc
test eax, eax
je 0x407ebb
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 0
call fcn.004778d0
mov edi, eax
test edi, edi
je 0x407ebb
cmp dword [0x530b48], 0
je 0x407d32
cmp dword [0x530b4c], 0x10
mov eax, 0x530b38
cmovae eax, dword [0x530b38]
push eax
push 0x27e3
push edi
call fcn.0047b030
add esp, 0xc
push 1
push 0x63
push edi
call fcn.0047b030
push 0
push 0x2f
push edi
call fcn.0047b030
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x407d51
mov esi, dword [esi]
push esi
push 0x2712
push edi
call fcn.0047b030
push 0
push 0x40
push edi
call fcn.0047b030
push 0
push 0x51
push edi
call fcn.0047b030
push 1
push 0x34
push edi
call fcn.0047b030
push 0xa
push 0x4e
push edi
call fcn.0047b030
push 0x407a50
push 0x4e2b
push edi
call fcn.0047b030
add esp, 0x48
lea eax, [ebp - 0x40]
push eax
push 0x2711
push edi
call fcn.0047b030
add esp, 0xc
test ebx, ebx
je 0x407dda
push 0
push 0x2b
push edi
call fcn.0047b030
lea eax, [ebp - 0x40]
push eax
push 0x2749
push edi
call fcn.0047b030
push 0x407be0
push 0x4e58
push edi
call fcn.0047b030
add esp, 0x24
push edi
call fcn.00477930
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x200002
push edi
call fcn.004778b0
push edi
call fcn.00477890
push dword [ebp - 0x34]
call fcn.004cfd33
push dword [ebp - 0x34]
call fcn.004d00bf
add esp, 0x1c
test esi, esi
jne 0x407e87
mov eax, 0x51eb851f
imul dword [ebp - 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x407e87
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x30]
cmovae ecx, dword [ebp + 0xc]
mov bl, 1
cmp dword [ebp - 0x1c], 8
push 1
cmovae eax, dword [ebp - 0x30]
push ecx
push eax
call edi
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp + 0xc]
push eax
call esi
test eax, eax
jne 0x407e8f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
push 1
cmovae ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
call edi
jmp 0x407e8f
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor bl, bl
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x407ebb
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call esi
test eax, eax
je 0x407ebb
mov bl, 1
jmp 0x407ebd
xor bl, bl
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x407ef3
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407ee9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f60
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x407f3d
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407f33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f60
push edx
push ecx
call fcn.00476a87
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
ret
call fcn.00401410
call fcn.004ca66d
int3