Function at 0x403300
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43303e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x449140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x108], eax
mov esi, ecx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x10c], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
call fcn.00403a40
test eax, eax
jne 0x4035c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x40374d
mov edx, esi
lea ecx, [ebp - 0x100]
call fcn.0040ac40
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x100]
or edi, 0xffffffff
mov dword [ebp - 0xf8], eax
test ecx, ecx
je 0x4033ba
lea edx, [ecx - 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
jne 0x4033ba
push edx
call fcn.00417cf7
mov eax, dword [ebp - 0xf8]
add esp, 4
cmp eax, 0xffffffff
je 0x403996
test al, 1
je 0x40374d
mov edx, esi
lea ecx, [ebp - 0x100]
call fcn.0040ac40
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push dword [eax]
call ebx
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xfc], eax
test ecx, ecx
je 0x403410
add ecx, 0xfffffff4
lock xadd dword [ecx], edi
dec edi
jne 0x403410
push ecx
call fcn.00417cf7
mov eax, dword [ebp - 0xfc]
add esp, 4
test eax, eax
jne 0x403462
call sub.KERNEL32.dll_GetLastError
push 0x43dfc4
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00405e30
push esi
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.0040e0b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x110]
call fcn.00403a20
mov byte [ebp - 4], 5
jmp 0x4039df
lea ecx, [ebp - 0x1c]
call fcn.00403a40
test eax, eax
je 0x4035df
mov edx, dword [ebp - 0x108]
lea ecx, [ebp - 0xfc]
call fcn.0040ac40
push dword [ebp - 0xf8]
push dword [eax]
call ebx
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.00406090
test esi, esi
jne 0x4035c3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
mov dword [ebp - 0xf8], 0x2f
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408700
mov ecx, dword [ebp - 0xf8]
mov esi, 0x43dff0
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0x28], eax
mov ecx, 0xa
mov dword [ebp - 0x18], 0x2a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [eax + 0x2a], 0
push ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x88]
call fcn.0040e0b0
mov esi, eax
push dword [ebp - 0x108]
mov edx, dword [ebp - 0x104]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00402b30
push 0x43dd28
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00406740
add esp, 0x14
push esi
push eax
push dword [ebp - 0x114]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00407730
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
call fcn.00401950
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00401ff0
lea ecx, [ebp - 0x40]
call fcn.00401ff0
lea ecx, [ebp - 0x70]
call fcn.00401ff0
lea ecx, [ebp - 0x88]
call fcn.00401ff0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4035c3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4035b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4039fd
push ecx
push edx
call fcn.00417cfc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417a68
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
lea ecx, [ebp - 0xfc]
mov edx, esi
mov dword [ebp - 0x100], ebx
call fcn.0040ac40
push dword [ebp - 0xf8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.00406090
test esi, esi
jne 0x403747
call edi
mov ebx, eax
mov dword [ebp - 0xf8], 0x2f
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408700
mov ecx, dword [ebp - 0xf8]
mov esi, 0x43dff0
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0x28], eax
mov ecx, 0xa
mov dword [ebp - 0x18], 0x2a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [eax + 0x2a], 0
push ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.0040e0b0
mov esi, eax
push dword [ebp - 0x108]
mov edx, dword [ebp - 0x104]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xc
call fcn.00402b30
push 0x43dd28
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x88]
call fcn.00406740
add esp, 0x14
push esi
push eax
push dword [ebp - 0x114]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xe
call fcn.00407730
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xf
push eax
call fcn.00401950
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00401ff0
lea ecx, [ebp - 0x88]
call fcn.00401ff0
lea ecx, [ebp - 0x70]
call fcn.00401ff0
lea ecx, [ebp - 0x40]
call fcn.00401ff0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x403741
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403737
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a02
push ecx
push edx
call fcn.00417cfc
add esp, 8
mov ebx, dword [ebp - 0x100]
mov esi, dword [ebp - 0x104]
xor eax, eax
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43e01c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x43e020]
mov dword [ebp - 0x24], eax
mov ax, word [0x43e024]
mov dword [ebp - 0x14], 0xf
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0
push ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x70]
call fcn.0040e0b0
add esp, 4
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4037cf
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4037c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a07
push ecx
push edx
call fcn.00417cfc
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ebx, 0x20
je 0x4037ef
cmp ebx, 0x21
jne 0x4038df
push ecx
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.004051e0
add esp, 4
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x48], 0
je 0x4038d3
xor eax, eax
lea ecx, [ebp - 0x40]
push 0x26
push 0x43dee0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00407130
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa4]
call fcn.00401680
push 0xa
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd8]
call fcn.004068a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x16
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.004067b0
add esp, 8
lea ecx, [ebp - 0x70]
push eax
call fcn.004059e0
lea ecx, [ebp - 0x88]
call fcn.00401ff0
lea ecx, [ebp - 0xd8]
call fcn.00401ff0
lea ecx, [ebp - 0xa4]
call fcn.00401ff0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4038d3
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4038c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a0c
push ecx
push edx
call fcn.00417cfc
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x12
call fcn.00401ff0
cmp ebx, 0x11
jne 0x40391a
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x110]
call fcn.00403a20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x17
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401e40
push 0x447b3c
lea eax, [ebp - 0xc0]
jmp 0x4039f7
cmp byte [ebp + 8], 0
jne 0x403963
cmp ebx, 0xb7
je 0x40392d
cmp ebx, 0x50
jne 0x403963
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x110]
call fcn.00403a20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x18
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401e10
push 0x447b90
lea eax, [ebp - 0xc0]
jmp 0x4039f7
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x110]
call fcn.00403a20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x19
push ecx
push eax
lea ecx, [ebp - 0xf4]
call fcn.00401c30
push 0x447c58
lea eax, [ebp - 0xf4]
jmp 0x4039f7
call sub.KERNEL32.dll_GetLastError
push 0x43de0c
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00405e30
push esi
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.0040e0b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x110]
call fcn.00403a20
mov byte [ebp - 4], 2
push esi
push eax
lea ecx, [ebp - 0x8c]
call fcn.00401c30
push 0x447c58
lea eax, [ebp - 0x8c]
push eax
call fcn.004191cc
call fcn.0041c7fe
call fcn.0041c7fe
call fcn.0041c7fe
call fcn.0041c7fe
int3