Function at 0x40fd30
Capabilities:
Check if file exists
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467c98
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x15
call fcn.0044ecb6
mov esi, eax
add esp, 4
add edi, 4
mov dword [ebp - 0x144], esi
mov ecx, edi
mov dword [ebp - 0x150], edi
mov dword [esi], 5
mov dword [esi + 4], 4
mov dword [esi + 8], 1
mov eax, dword [str.path]
mov dword [esi + 0x10], eax
mov al, byte [0x479754]
mov byte [esi + 0x14], al
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x40fdd4
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x160], eax
test eax, eax
je 0x40fde2
add eax, 8
lock inc dword [eax]
jmp 0x40fde2
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 4], 0
lea ecx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x40fdfe
push esi
call fcn.0044ec66
add esp, 4
push 0x15
call fcn.0044ecb6
mov esi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x144], esi
mov dword [esi], 5
mov dword [esi + 4], 4
mov dword [esi + 8], 1
mov eax, dword [str.name]
mov dword [esi + 0x10], eax
mov al, byte [0x47975c]
mov byte [esi + 0x14], al
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x40fe64
mov edi, dword [eax + 0x14]
mov dword [ebp - 0x168], edi
test edi, edi
je 0x40fe6c
lea eax, [edi + 8]
lock inc dword [eax]
jmp 0x40fe6c
xor edi, edi
mov dword [ebp - 0x168], edi
or eax, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jne 0x40fe81
push esi
call fcn.0044ec66
add esp, 4
push 0x19
call fcn.0044ecb6
mov esi, dword [ebp - 0x150]
add esp, 4
mov dword [ebp - 0x144], eax
mov dword [eax], 9
lea ecx, [eax + 8]
mov dword [eax + 4], 8
mov dword [ecx], 1
movq xmm0, qword [str.old_name]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x14c], ecx
mov cl, byte [0x479768]
mov byte [eax + 0x18], cl
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x16c]
mov ecx, esi
push eax
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x40fef9
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x164], esi
test esi, esi
je 0x40ff01
lea eax, [esi + 8]
lock inc dword [eax]
jmp 0x40ff01
xor esi, esi
mov dword [ebp - 0x164], esi
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14c]
lock xadd dword [ecx], eax
jne 0x40ff22
push dword [ebp - 0x144]
call fcn.0044ec66
add esp, 4
test edi, edi
je 0x410895
cmp dword [edi + 4], 0
je 0x410895
test esi, esi
je 0x410895
cmp dword [esi + 4], 0
je 0x410895
lea eax, [ebp - 0x118]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea esi, [edi + 1]
lea ecx, [esi + 0x10]
push ecx
call fcn.0044ecb6
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x144], eax
push ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 1
add eax, 0x10
push eax
call fcn.0044cb90
push 0x479774
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x150]
call fcn.00402750
lea ecx, [ebp - 0x160]
mov edx, eax
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00403900
push str.unzip_
mov edx, eax
lea ecx, [ebp - 0x148]
call fcn.00402750
lea ecx, [ebp - 0x168]
mov edx, eax
push ecx
lea ecx, [ebp - 0x158]
call fcn.00403900
add esp, 0x20
mov eax, dword [ebp - 0x148]
or esi, 0xffffffff
test eax, eax
je 0x41000c
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x410002
push dword [ebp - 0x148]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x410039
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x41002f
push dword [ebp - 0x14c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x410066
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x41005c
push dword [ebp - 0x150]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x150], 0
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x410084
lea edx, [eax + 8]
mov ecx, esi
lock xadd dword [edx], ecx
jne 0x410084
push eax
call fcn.0044ec66
add esp, 4
push 0xffffffffffffffff
push 0x477a20
push 0x479774
lea ecx, [ebp - 0x158]
call fcn.004016e0
lea eax, [ebp - 0x118]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea esi, [edi + 1]
lea ecx, [esi + 0x10]
push ecx
call fcn.0044ecb6
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x144], eax
push ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 1
add eax, 0x10
push eax
call fcn.0044cb90
push 0x479774
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x14c]
call fcn.00402750
lea ecx, [ebp - 0x160]
mov edx, eax
push ecx
lea ecx, [ebp - 0x148]
call fcn.00403900
push 0x479774
mov edx, eax
lea ecx, [ebp - 0x150]
call fcn.00402750
lea ecx, [ebp - 0x164]
mov edx, eax
push ecx
lea ecx, [ebp - 0x154]
call fcn.00403900
add esp, 0x20
mov eax, dword [ebp - 0x150]
or esi, 0xffffffff
test eax, eax
je 0x410161
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x410157
push dword [ebp - 0x150]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x150], 0
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x41018e
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x410184
push dword [ebp - 0x148]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x4101bb
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x4101b1
push dword [ebp - 0x14c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x4101d9
lea edx, [eax + 8]
mov ecx, esi
lock xadd dword [edx], ecx
jne 0x4101d9
push eax
call fcn.0044ec66
add esp, 4
lea eax, [ebp - 0x118]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea esi, [edi + 1]
lea ecx, [esi + 0x10]
push ecx
call fcn.0044ecb6
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x148], eax
push ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 1
add eax, 0x10
push eax
call fcn.0044cb90
push 0x479774
lea edx, [ebp - 0x148]
lea ecx, [ebp - 0x144]
call fcn.00402750
lea ecx, [ebp - 0x160]
mov edx, eax
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00403900
push 0x479774
mov edx, eax
lea ecx, [ebp - 0x150]
call fcn.00402750
lea ecx, [ebp - 0x168]
mov edx, eax
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00403900
add esp, 0x20
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x4102a3
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x410299
push dword [ebp - 0x150]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x150], 0
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x4102d0
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4102c6
push dword [ebp - 0x14c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x4102fd
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4102f3
push dword [ebp - 0x144]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x41031b
lea edx, [eax + 8]
mov ecx, edi
lock xadd dword [edx], ecx
jne 0x41031b
push eax
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x158]
test eax, eax
jne 0x41032d
lea eax, [ebp - 0x158]
jmp 0x41035b
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x158]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x410358
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x158]
add eax, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
je 0x4106c5
mov eax, dword [ebp - 0x154]
test eax, eax
jne 0x41037f
lea eax, [ebp - 0x154]
jmp 0x4103ad
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x154]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x4103aa
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x154]
add eax, 0x10
push eax
call esi
cmp eax, 0xffffffff
je 0x4106c5
lea ecx, [ebp - 0x154]
call fcn.00401430
push 0x61
push eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x148], 0
call fcn.00403790
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x148]
test esi, esi
je 0x410671
cmp dword [esi], 0xffffffff
je 0x410671
lea ecx, [ebp - 0x158]
call fcn.00401430
push 0x72
push eax
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x14c], 0
call fcn.00403790
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x410612
cmp dword [eax], 0xffffffff
je 0x410612
lea ecx, [eax + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x144], ecx
test eax, eax
je 0x41046a
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.004019f0
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
cmp byte [eax + edx + 0x10], 0
je 0x410467
mov byte [eax + edx + 0x10], 0
mov edx, dword [ecx]
lea ecx, [edx + 0x10]
lea eax, [ebp - 0x13c]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
xor ecx, ecx
or ecx, dword [ebp - 0x11c]
test eax, eax
cmove ecx, edi
push ecx
mov dword [ebp - 0x144], ecx
call fcn.00414d84
add esp, 4
mov dword [ebp - 0x150], eax
test eax, eax
je 0x41064f
push dword [ebp - 0x144]
lea ecx, [ebp - 0x14c]
push eax
call fcn.004038a0
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x144]
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x148]
push esi
call fcn.004038d0
lea ecx, [ebp - 0x148]
call fcn.00403880
lea ecx, [ebp - 0x14c]
call fcn.00403880
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x15c]
test eax, eax
jne 0x41050a
mov dword [ebp - 0x144], ecx
jmp 0x410538
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x41052f
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x15c]
add eax, 0x10
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x154]
test eax, eax
jne 0x41054a
lea eax, [ebp - 0x154]
jmp 0x410578
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x154]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x410575
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x154]
add eax, 0x10
push dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push esi
call fcn.00414d7f
add esp, 4
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x144]
call fcn.0040f530
mov dl, 1
mov ecx, eax
call fcn.00404f40
lea ecx, [ebp - 0x144]
call fcn.004013f0
lea ecx, [ebp - 0x13d]
call fcn.00403d60
mov eax, dword fs:[0x2c]
push str.__font__br_
push 0x4797c0
push 0x477750
mov eax, dword [eax]
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
lea ecx, [ebp - 0x14c]
mov byte [ebp - 0x13d], 1
call fcn.00403730
lea ecx, [ebp - 0x148]
call fcn.00403730
jmp 0x4107f4
lea ecx, [ebp - 0x13d]
call fcn.00403d60
mov eax, dword fs:[0x2c]
push str.__font__br_
push 0x4797a8
push 0x477750
mov eax, dword [eax]
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
lea ecx, [ebp - 0x14c]
mov byte [ebp - 0x13d], 0
call fcn.00403730
lea ecx, [ebp - 0x148]
call fcn.00403730
jmp 0x4107f4
lea ecx, [ebp - 0x13d]
call fcn.00403d60
mov eax, dword fs:[0x2c]
push str.__font__br_
push 0x479794
push 0x477750
mov eax, dword [eax]
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
lea ecx, [ebp - 0x148]
mov byte [ebp - 0x13d], 0
call fcn.00403730
jmp 0x4107f4
lea ecx, [ebp - 0x13d]
call fcn.00403d60
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x2b]
cmp edx, eax
jae 0x410713
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x2b
mov dword [ebp - 0x144], eax
cmp edx, eax
jae 0x410713
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x144]
mov dword [esi], eax
mov eax, dword [esi + 8]
push 0x2b
add eax, ecx
push 0x477750
push eax
call fcn.0044cb90
mov ecx, dword [esi + 4]
add esp, 0xc
mov edx, dword [esi]
add ecx, 0x2b
mov dword [esi + 4], ecx
lea eax, [ecx + 0x18]
cmp edx, eax
jae 0x410766
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x18
mov dword [ebp - 0x144], eax
cmp edx, eax
jae 0x410766
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x144]
mov dword [esi], eax
mov eax, dword [esi + 8]
movups xmm0, xmmword [0x479778]
movups xmmword [eax + ecx], xmm0
movq xmm0, qword [0x479788]
movq qword [eax + ecx + 0x10], xmm0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, 0x18
mov dword [esi + 4], edx
lea eax, [edx + 0xb]
cmp ecx, eax
jae 0x4107c0
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xb
mov dword [ebp - 0x144], eax
cmp ecx, eax
jae 0x4107c0
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x144]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movq xmm0, qword [str.__font__br_]
movq qword [ecx + edx], xmm0
mov ax, word [0x477798]
mov word [ecx + edx + 8], ax
mov al, byte [0x47779a]
mov byte [ecx + edx + 0xa], al
add dword [esi + 4], 0xb
call fcn.00403dc0
mov byte [ebp - 0x13d], 0
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x410821
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x410817
push dword [ebp - 0x15c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x41084e
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x410844
push dword [ebp - 0x154]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x41087b
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x410871
push dword [ebp - 0x158]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x158], 0
mov eax, dword [ebp - 0x160]
mov edi, dword [ebp - 0x168]
mov esi, dword [ebp - 0x164]
mov dword [ebp - 0x148], eax
jmp 0x41089c
mov byte [ebp - 0x13d], 0
test esi, esi
je 0x4108b5
lea ecx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4108b5
push esi
call fcn.0044ec66
add esp, 4
or esi, 0xffffffff
test edi, edi
je 0x4108d0
lea ecx, [edi + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x4108d0
push edi
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x4108ed
lea ecx, [eax + 8]
lock xadd dword [ecx], esi
dec esi
jne 0x4108ed
push eax
call fcn.0044ec66
add esp, 4
mov al, byte [ebp - 0x13d]
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.00414803
mov esp, ebp
pop ebp
ret