Function at 0x475580
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3880
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x54d000]
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 esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp + 0xc]
mov edx, esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], edi
call fcn.004cc2e0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004cc2e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x475620
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
push 1
cmovae esi, dword [ebp - 0x28]
lea edi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push esi
cmovae edi, dword [ebp - 0x40]
push edi
call ebx
test eax, eax
jne 0x47561a
push esi
mov ecx, edi
call fcn.004758f0
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
cmp dword [ebp - 0x14], 0x10
jb 0x475646
push dword [ebp - 0x28]
call fcn.004d9d65
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov byte [eax], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x475685
push dword [ebp - 0x40]
call fcn.004d9d65
add esp, 4
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004cc4e0
mov edx, edi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004cc4e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4756e8
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
push 1
cmovae esi, dword [ebp - 0x40]
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae edi, dword [ebp - 0x28]
push edi
call ebx
test eax, eax
jne 0x4756e2
push esi
mov ecx, edi
call fcn.004758f0
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
mov byte [eax], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x47570e
push dword [ebp - 0x40]
call fcn.004d9d65
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x18], 0
mov byte [eax], 0
cmp dword [ebp - 0x14], 0x10
jb 0x47574d
push dword [ebp - 0x28]
call fcn.004d9d65
add esp, 4
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004cc5e0
mov edx, edi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004cc5e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4757b0
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
push 1
cmovae esi, dword [ebp - 0x40]
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae edi, dword [ebp - 0x28]
push edi
call ebx
test eax, eax
jne 0x4757aa
push esi
mov ecx, edi
call fcn.004758f0
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
mov byte [eax], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x4757d6
push dword [ebp - 0x40]
call fcn.004d9d65
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x18], 0
mov byte [eax], 0
cmp dword [ebp - 0x14], 0x10
jb 0x475815
push dword [ebp - 0x28]
call fcn.004d9d65
add esp, 4
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.004cc6e0
mov edx, edi
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.004cc6e0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x475872
cmp dword [ebp - 0x5c], 0x10
lea esi, [ebp - 0x70]
push 1
cmovae esi, dword [ebp - 0x70]
lea edi, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push esi
cmovae edi, dword [ebp - 0x58]
push edi
call ebx
test eax, eax
jne 0x475872
push esi
mov ecx, edi
call fcn.004758f0
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
mov dword [ebp - 0x60], 0
cmovae eax, dword [ebp - 0x70]
mov byte [eax], 0
cmp dword [ebp - 0x5c], 0x10
jb 0x475898
push dword [ebp - 0x70]
call fcn.004d9d65
add esp, 4
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], 0xf
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x48], 0
mov byte [eax], 0
cmp dword [ebp - 0x44], 0x10
jb 0x4758d0
push dword [ebp - 0x58]
call fcn.004d9d65
add esp, 4
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.004d9d6a
mov esp, ebp
pop ebp
ret 8