Function at 0x403cd0
Capabilities:
Move file
Set file attributes

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp byte [ebp + 0x22], 0
push esi
push edi
jne 0x403cf0
cmp byte [0x40b00c], 0
sete al
test al, al
mov byte [ebp + 0x22], al
je 0x403cfc
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00407b40
jmp 0x403d08
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00407b40
mov ebx, ecx
add esp, 4
cmp byte [ebp + 0x23], 0
je 0x403d1f
mov edx, dword [ebp + 0x24]
and edx, 0xfffffffe
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 4
push 0xc0000000
push ebx
mov byte [esp + 0x38], 0
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x403daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.00407b40
add esp, 8
cmp byte [0x40b00e], 0
je 0x403f00
cmp eax, 0x20
je 0x403d71
cmp eax, 5
jne 0x403f00
push ebx
call fcn.004061c0
add esp, 4
test al, al
je 0x403f00
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 4
push 0xc0000000
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x403f00
mov byte [esp + 0x13], 0
call fcn.00403c40
test al, al
je 0x403eb4
mov eax, dword [0x41d260]
mov ecx, dword [eax]
test ecx, ecx
mov edx, ecx
je 0x403dfd
mov eax, dword [edx + 4]
test eax, eax
je 0x403dd9
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x403dd0
cmp dword [edx], 0
je 0x403dfd
mov eax, dword [ecx + 4]
test eax, eax
je 0x403dee
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403de5
mov ecx, dword [ecx]
mov edi, dword [ebp + 0x28]
push ecx
mov eax, ebx
call fcn.00403100
jmp 0x403e02
call fcn.00407b40
cmp byte [ebp + 0x22], 0
push esi
je 0x403e17
push ebx
mov ebx, ebp
call fcn.00403fa0
mov ebx, dword [esp + 0x20]
jmp 0x403e1f
push ebp
mov eax, ebx
call fcn.004045a0
add esp, 8
test al, al
mov byte [esp + 0x1c], al
je 0x403eb4
mov edx, dword [esp + 0x18]
lea ebx, [ebp + 0x2c]
mov edi, 0x7fff
call fcn.004048f0
lea edx, [ebp + 0x1002a]
mov eax, ebx
cmp word [eax], 0
je 0x403e55
add eax, 2
sub edi, 1
jne 0x403e47
test edi, edi
je 0x403e81
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x403e76
sub edi, 1
jne 0x403e60
test edi, edi
jne 0x403e81
mov word [ebx + 0xfffc], di
push ebx
call fcn.00407b40
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x403ea1
mov byte [esp + 0x13], 1
jmp 0x403eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b40
add esp, 4
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [esp + 0x1c]
cmp dl, 1
jne 0x403ee3
cmp byte [esp + 0x13], 0
jne 0x403ee3
lea edx, [ebp + 0x2c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dl, byte [esp + 0x1c]
je 0x403ee3
mov byte [esp + 0x13], 1
cmp byte [ebp + 0x23], 0
je 0x403f04
cmp byte [esp + 0x13], 0
lea eax, [ebp + 0x2c]
jne 0x403ef5
mov eax, ebx
mov ecx, dword [ebp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dl, byte [esp + 0x1c]
mov eax, dword [0x41d260]
mov esi, dword [eax]
test esi, esi
mov ecx, esi
je 0x403f84
mov eax, dword [ecx + 4]
test eax, eax
je 0x403f21
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403f18
cmp dword [ecx], 0
je 0x403f84
mov eax, dword [esi + 4]
test eax, eax
je 0x403f37
lea ecx, [ecx]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403f30
mov eax, dword [ebp + 0x28]
mov esi, 1
add dword [eax + 0x10034], esi
mov ecx, dword [ebp + 0x18]
add dword [eax + 0x10040], ecx
mov ecx, dword [ebp + 0x1c]
adc dword [eax + 0x10044], ecx
test dl, dl
je 0x403f89
add dword [eax + 0x10038], esi
mov ecx, dword [ebp + 0x18]
add dword [eax + 0x10048], ecx
mov ecx, dword [ebp + 0x1c]
push ebx
adc dword [eax + 0x1004c], ecx
call fcn.00407b40
add esp, 4
mov al, dl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00407b40
push ebx
call fcn.00407b40
add esp, 4
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
pop ecx
ret