Function at 0x403c00
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 0x403c20
cmp byte [0x40a00c], 0
sete al
test al, al
mov byte [ebp + 0x22], al
je 0x403c2c
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00407a20
jmp 0x403c38
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00407a20
mov ebx, ecx
add esp, 4
cmp byte [ebp + 0x23], 0
je 0x403c4f
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 0x403cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.00407a20
add esp, 8
cmp byte [0x40a00e], 0
je 0x403e30
cmp eax, 0x20
je 0x403ca1
cmp eax, 5
jne 0x403e30
push ebx
call fcn.004060d0
add esp, 4
test al, al
je 0x403e30
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 0x403e30
mov byte [esp + 0x13], 0
call fcn.00403b70
test al, al
je 0x403de4
mov eax, dword [0x41c25c]
mov ecx, dword [eax]
test ecx, ecx
mov edx, ecx
je 0x403d2d
mov eax, dword [edx + 4]
test eax, eax
je 0x403d09
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x403d00
cmp dword [edx], 0
je 0x403d2d
mov eax, dword [ecx + 4]
test eax, eax
je 0x403d1e
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403d15
mov ecx, dword [ecx]
mov edi, dword [ebp + 0x28]
push ecx
mov eax, ebx
call fcn.004030f0
jmp 0x403d32
call fcn.00407a20
cmp byte [ebp + 0x22], 0
push esi
je 0x403d47
push ebx
mov ebx, ebp
call fcn.00403ed0
mov ebx, dword [esp + 0x20]
jmp 0x403d4f
push ebp
mov eax, ebx
call fcn.004044d0
add esp, 8
test al, al
mov byte [esp + 0x1c], al
je 0x403de4
mov edx, dword [esp + 0x18]
lea ebx, [ebp + 0x2c]
mov edi, 0x7fff
call fcn.00404820
lea edx, [ebp + 0x1002a]
mov eax, ebx
cmp word [eax], 0
je 0x403d85
add eax, 2
sub edi, 1
jne 0x403d77
test edi, edi
je 0x403db1
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x403da6
sub edi, 1
jne 0x403d90
test edi, edi
jne 0x403db1
mov word [ebx + 0xfffc], di
push ebx
call fcn.00407a20
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x403dd1
mov byte [esp + 0x13], 1
jmp 0x403de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a20
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 0x403e13
cmp byte [esp + 0x13], 0
jne 0x403e13
lea edx, [ebp + 0x2c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dl, byte [esp + 0x1c]
je 0x403e13
mov byte [esp + 0x13], 1
cmp byte [ebp + 0x23], 0
je 0x403e34
cmp byte [esp + 0x13], 0
lea eax, [ebp + 0x2c]
jne 0x403e25
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 [0x41c25c]
mov esi, dword [eax]
test esi, esi
mov ecx, esi
je 0x403eb4
mov eax, dword [ecx + 4]
test eax, eax
je 0x403e51
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403e48
cmp dword [ecx], 0
je 0x403eb4
mov eax, dword [esi + 4]
test eax, eax
je 0x403e67
lea ecx, [ecx]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403e60
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 0x403eb9
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.00407a20
add esp, 4
mov al, dl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00407a20
push ebx
call fcn.00407a20
add esp, 4
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
pop ecx
ret