Function at 0x403330
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
push edi
lea eax, [esi + 0x130]
push ebx
mov ecx, eax
call fcn.00405520
test al, al
je 0x4035c4
push ecx
push ebx
lea ecx, [esi + 0x130]
call fcn.004090a0
test al, al
je 0x4035c4
mov edx, dword [ebp + 0x10]
lea eax, [esi + 0x130]
mov dword [esi + 0x34c], eax
xor ecx, ecx
mov dword [esi + 8], edx
mov eax, 0x441f60
cmp dword [eax], edx
je 0x40347b
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x403384
cmp dword [ebx], 0
mov esi, ebx
je 0x4033ad
nop
mov esi, dword [esi]
add esi, 0x124
cmp dword [esi], 0
jne 0x4033a0
push pe_nt_image_headers32
call fcn.0042187c
mov ebx, eax
mov ecx, 4
add esp, 4
mov dword [ebp + 0xc], ebx
mov dword [ebx], vtable.t_str.0
mov word [ebx + 0x11a], cx
lea ecx, [ebx + 0xc]
mov dword [ebx + 8], ecx
mov byte [ebx + 0x11c], 1
mov dword [ecx], 0
mov dword [ebp + 0xc], ecx
lea ecx, [ebx + 8]
push 1
mov dword [ebx + 0x120], 0
mov dword [ebx + 4], 0
call fcn.00404130
cmp byte [ebx + 0x11c], 0
mov eax, dword [ebp + 0xc]
jne 0x403411
mov eax, dword [ebx + 8]
xor ecx, ecx
push 0x444320
mov word [eax + 4], cx
push 0x444420
mov dword [ebx + 0x124], ecx
push ebx
mov dword [esi], ebx
call fcn.00403f30
push dword [ebp + 0x10]
push 0x444418
push ebx
call fcn.00403f30
add esp, 0x18
cmp byte [edi + 0x11c], 0
je 0x40344e
add edi, 0xc
jmp 0x403451
mov edi, dword [edi + 8]
mov ecx, dword [ebp + 8]
push 0x444344
call fcn.00403170
lea ecx, [edi + 4]
push ecx
push 0x444420
push eax
call fcn.00403f30
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
push ecx
mov dword [ebp - 4], ecx
mov ecx, edi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
call fcn.00403f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
mov dword [ebp + 0x10], 1
cmp eax, 0xffffffff
jne 0x40352b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4034de
cmp dword [ebp + 0x10], 3
jge 0x40357c
cmp byte [esi + 0x350], 0
je 0x403500
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403500
cmp eax, 5
jne 0x40353f
cmp dword [ebp + 0x10], 3
jge 0x40357c
push 0x80
mov ecx, edi
call fcn.00403f10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp + 8]
mov ecx, edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00403f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4034b6
push edi
lea ecx, [esi + 0xc]
call fcn.00403cc0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x40357c
cmp byte [edi + 0x11c], al
je 0x403550
add edi, 0xc
jmp 0x403553
mov edi, dword [edi + 8]
push 0x444354
mov ecx, ebx
call fcn.00403170
lea ecx, [edi + 4]
push ecx
push 0x444420
push eax
call fcn.00403f30
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x11c], 0
je 0x40358a
add edi, 0xc
jmp 0x40358d
mov edi, dword [edi + 8]
push eax
mov ecx, ebx
call fcn.00407100
push 0x444344
mov esi, eax
push 0x444420
push esi
call fcn.00403f30
lea ecx, [edi + 4]
push ecx
push 0x444420
push esi
call fcn.00403f30
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x444334
mov ecx, ebx
call fcn.00403170
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc