Function at 0x436b50
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0220
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [esi + 0x60]
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00449640
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
movzx ebx, byte [esi + 0x30fc]
mov eax, dword [ebp - 0x14]
neg ebx
sbb ebx, ebx
xor esi, esi
push esi
push str.iologvr.log
push eax
and ebx, 0xb
push str._s_s._d
lea edi, [ebp - 0x10]
dec ebx
call fcn.004020e0
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436c3f
lea ecx, [ecx]
mov edx, dword [ebp - 0x14]
inc esi
push esi
push str.iologvr.log
push edx
push str._s_s._d
lea edi, [ebp - 0x10]
call fcn.004020e0
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x436c10
test esi, esi
je 0x436c41
dec esi
test esi, esi
js 0x436cae
mov ecx, dword [ebp - 0x14]
push esi
push str.iologvr.log
push ecx
push str._s_s._d
lea edi, [ebp - 0x10]
call fcn.004020e0
mov edx, dword [ebp - 0x10]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436cae
test ebx, ebx
jle 0x436c80
cmp esi, ebx
jl 0x436c80
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x436cab
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 1]
push ecx
push str.iologvr.log
push edx
push str._s_s._d
lea edi, [ebp - 0x18]
call fcn.004020e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
dec esi
jns 0x436c43
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ebx, str.iologvr.log
call fcn.00437610
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ebx, dword [ebp - 0x10]
lea edi, [eax - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x436d75
cmp dword [ebx + 0xc], 0
jl 0x436d68
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x436d68
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x436d0b
cmp eax, dword [edi]
jne 0x436d0b
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x436d47
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x436d24
call fcn.004020d0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.0047312c
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x436d60
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [ebp - 0x10], esi
jmp 0x436d75
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402e20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ebx, str.iologvr.log
call fcn.00437610
push eax
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0x4b2674
mov byte [ebp - 4], 4
call fcn.00437610
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov esi, dword [ebp - 0x18]
lea edi, [eax - 0x10]
lea ebx, [esi - 0x10]
cmp edi, ebx
je 0x436e75
cmp dword [ebx + 0xc], 0
jl 0x436e65
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x436e65
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x436e08
cmp eax, dword [edi]
jne 0x436e08
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x436e44
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x436e21
call fcn.004020d0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.0047312c
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x436e5d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [ebp - 0x18], esi
jmp 0x436e72
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402e20
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436e98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436ebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436eed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436f33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret