Function at 0x403350
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 0x403370
cmp byte [0x409008], 0
sete al
test al, al
mov byte [ebp + 0x22], al
je 0x40337c
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004065c0
jmp 0x403388
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004065c0
mov ebx, ecx
add esp, 4
cmp byte [ebp + 0x23], 0
je 0x40339f
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 0x40342a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.004065c0
add esp, 8
cmp byte [0x40900a], 0
je 0x403537
cmp eax, 0x20
je 0x4033f1
cmp eax, 5
jne 0x403537
push ebx
call fcn.00404c50
add esp, 4
test al, al
je 0x403537
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 0x403537
mov byte [esp + 0x13], 0
call fcn.004032c0
test al, al
je 0x4034eb
cmp byte [ebp + 0x22], 0
push esi
je 0x403451
push ebx
mov ebx, ebp
call fcn.004035d0
mov ebx, dword [esp + 0x20]
jmp 0x403459
push ebp
mov eax, ebx
call fcn.00403bd0
add esp, 8
test al, al
mov byte [esp + 0x1c], al
je 0x4034eb
lea eax, [ebp + 0x2c]
mov edx, ebx
mov edi, 0x7fff
mov ebx, eax
call fcn.00403f20
lea edx, [ebp + 0x1002a]
lea eax, [ebp + 0x2c]
cmp word [eax], 0
je 0x403490
add eax, 2
sub edi, 1
jne 0x403482
test edi, edi
je 0x4034b5
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x4034aa
sub edi, 1
jne 0x403494
test edi, edi
jne 0x4034b5
mov word [ebp + 0x10028], di
lea eax, [ebp + 0x2c]
push eax
call fcn.004065c0
add esp, 4
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4034d8
mov byte [esp + 0x13], 1
jmp 0x4034e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004065c0
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 0x40351a
cmp byte [esp + 0x13], 0
jne 0x40351a
lea ecx, [ebp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dl, byte [esp + 0x1c]
je 0x40351a
mov byte [esp + 0x13], 1
cmp byte [ebp + 0x23], 0
je 0x40353b
cmp byte [esp + 0x13], 0
lea eax, [ebp + 0x2c]
jne 0x40352c
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 0x4035b9
mov eax, dword [ecx + 4]
test eax, eax
je 0x403559
nop
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x403550
cmp dword [ecx], 0
je 0x4035b9
mov eax, dword [esi + 4]
test eax, eax
je 0x40356c
mov eax, dword [eax + 4]
test eax, eax
jne 0x403565
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 0x4035be
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.004065c0
add esp, 4
mov al, dl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.004065c0
push ebx
call fcn.004065c0
add esp, 4
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
pop ecx
ret