Function at 0x403360
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 0x403380
cmp byte [0x409008], 0
sete al
test al, al
mov byte [ebp + 0x22], al
je 0x40338c
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004065d0
jmp 0x403398
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004065d0
mov ebx, ecx
add esp, 4
cmp byte [ebp + 0x23], 0
je 0x4033af
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 0x40343a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.004065d0
add esp, 8
cmp byte [0x40900a], 0
je 0x403547
cmp eax, 0x20
je 0x403401
cmp eax, 5
jne 0x403547
push ebx
call fcn.00404c60
add esp, 4
test al, al
je 0x403547
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 0x403547
mov byte [esp + 0x13], 0
call fcn.004032d0
test al, al
je 0x4034fb
cmp byte [ebp + 0x22], 0
push esi
je 0x403461
push ebx
mov ebx, ebp
call fcn.004035e0
mov ebx, dword [esp + 0x20]
jmp 0x403469
push ebp
mov eax, ebx
call fcn.00403be0
add esp, 8
test al, al
mov byte [esp + 0x1c], al
je 0x4034fb
lea eax, [ebp + 0x2c]
mov edx, ebx
mov edi, 0x7fff
mov ebx, eax
call fcn.00403f30
lea edx, [ebp + 0x1002a]
lea eax, [ebp + 0x2c]
cmp word [eax], 0
je 0x4034a0
add eax, 2
sub edi, 1
jne 0x403492
test edi, edi
je 0x4034c5
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x4034ba
sub edi, 1
jne 0x4034a4
test edi, edi
jne 0x4034c5
mov word [ebp + 0x10028], di
lea eax, [ebp + 0x2c]
push eax
call fcn.004065d0
add esp, 4
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4034e8
mov byte [esp + 0x13], 1
jmp 0x4034f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004065d0
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 0x40352a
cmp byte [esp + 0x13], 0
jne 0x40352a
lea ecx, [ebp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dl, byte [esp + 0x1c]
je 0x40352a
mov byte [esp + 0x13], 1
cmp byte [ebp + 0x23], 0
je 0x40354b
cmp byte [esp + 0x13], 0
lea eax, [ebp + 0x2c]
jne 0x40353c
mov eax, ebx
mov edx, dword [ebp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dl, byte [esp + 0x1c]
mov eax, dword [0x41b250]
mov esi, dword [eax]
test esi, esi
mov ecx, esi
je 0x4035c9
mov eax, dword [ecx + 4]
test eax, eax
je 0x403569
nop
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403560
cmp dword [ecx], 0
je 0x4035c9
mov eax, dword [esi + 4]
test eax, eax
je 0x40357c
mov eax, dword [eax + 4]
test eax, eax
jne 0x403575
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 0x4035ce
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.004065d0
add esp, 4
mov al, dl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.004065d0
push ebx
call fcn.004065d0
add esp, 4
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
pop ecx
ret