Function at 0x403c10
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 0x403c30
cmp byte [0x40a00c], 0
sete al
test al, al
mov byte [ebp + 0x22], al
je 0x403c3c
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00407a30
jmp 0x403c48
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00407a30
mov ebx, ecx
add esp, 4
cmp byte [ebp + 0x23], 0
je 0x403c5f
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 0x403cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.00407a30
add esp, 8
cmp byte [0x40a00e], 0
je 0x403e40
cmp eax, 0x20
je 0x403cb1
cmp eax, 5
jne 0x403e40
push ebx
call fcn.004060e0
add esp, 4
test al, al
je 0x403e40
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 0x403e40
mov byte [esp + 0x13], 0
call fcn.00403b80
test al, al
je 0x403df4
mov eax, dword [0x41c25c]
mov ecx, dword [eax]
test ecx, ecx
mov edx, ecx
je 0x403d3d
mov eax, dword [edx + 4]
test eax, eax
je 0x403d19
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x403d10
cmp dword [edx], 0
je 0x403d3d
mov eax, dword [ecx + 4]
test eax, eax
je 0x403d2e
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403d25
mov ecx, dword [ecx]
mov edi, dword [ebp + 0x28]
push ecx
mov eax, ebx
call fcn.00403100
jmp 0x403d42
call fcn.00407a30
cmp byte [ebp + 0x22], 0
push esi
je 0x403d57
push ebx
mov ebx, ebp
call fcn.00403ee0
mov ebx, dword [esp + 0x20]
jmp 0x403d5f
push ebp
mov eax, ebx
call fcn.004044e0
add esp, 8
test al, al
mov byte [esp + 0x1c], al
je 0x403df4
mov edx, dword [esp + 0x18]
lea ebx, [ebp + 0x2c]
mov edi, 0x7fff
call fcn.00404830
lea edx, [ebp + 0x1002a]
mov eax, ebx
cmp word [eax], 0
je 0x403d95
add eax, 2
sub edi, 1
jne 0x403d87
test edi, edi
je 0x403dc1
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x403db6
sub edi, 1
jne 0x403da0
test edi, edi
jne 0x403dc1
mov word [ebx + 0xfffc], di
push ebx
call fcn.00407a30
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x403de1
mov byte [esp + 0x13], 1
jmp 0x403df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
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 0x403e23
cmp byte [esp + 0x13], 0
jne 0x403e23
lea edx, [ebp + 0x2c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dl, byte [esp + 0x1c]
je 0x403e23
mov byte [esp + 0x13], 1
cmp byte [ebp + 0x23], 0
je 0x403e44
cmp byte [esp + 0x13], 0
lea eax, [ebp + 0x2c]
jne 0x403e35
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 0x403ec4
mov eax, dword [ecx + 4]
test eax, eax
je 0x403e61
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403e58
cmp dword [ecx], 0
je 0x403ec4
mov eax, dword [esi + 4]
test eax, eax
je 0x403e77
lea ecx, [ecx]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403e70
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 0x403ec9
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.00407a30
add esp, 4
mov al, dl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00407a30
push ebx
call fcn.00407a30
add esp, 4
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
pop ecx
ret