Function at 0x404d80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43babc
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x45fa9a], 0
jne 0x40506e
mov byte [ebp - 0x6d8], 0
mov dword [ebp - 0x6dc], 0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - method.t_mutex::t_locker.virtual_0], vtable.t_mutex::t_locker.0
mov dword [ebp - 0x6e0], edi
push ecx
lea eax, [ebp - 0x6dc]
mov byte [ebp - 4], 1
mov esi, 0x4599f0
push eax
mov ecx, esi
call fcn.00408b30
test al, al
lea ecx, [ebp - 0x258]
cmove esi, edi
mov dword [ebp - 0x6e0], esi
call fcn.00405f90
lea edx, [ebp - 0x258]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6dc]
call fcn.00407fa0
test al, al
je 0x404fd6
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push edi
cmove eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x134]
push edi
push edi
push edi
push edi
add eax, 4
push eax
call fcn.004020e0
sub esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x6dc]
lea ecx, [ebp - 0x134]
push eax
call fcn.00402970
push edi
push edi
push edi
push edi
push edi
push str.temp.dll
lea ecx, [ebp - 0x37c]
call fcn.004020e0
lea eax, [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x134]
call fcn.004023e0
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x404ec3
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x404ec3
push eax
call fcn.00429847
add esp, 4
push ecx
lea ecx, [ebp - 0x6d4]
call fcn.00405a60
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - 0x380], 0x45032c
mov byte [ebp - 4], 4
lea eax, [ebp - 0x128]
cmp byte [ebp - 0x18], 0
push 0x80
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x6dc]
push eax
lea ecx, [ebp - 0x6d4]
call fcn.00405c00
test al, al
je 0x404f8e
push 0x3cc8
push 0x44a7a8
lea eax, [ebp - 0x6dc]
push eax
lea ecx, [ebp - 0x380]
call fcn.004095b0
lea ecx, [ebp - 0x6d4]
call fcn.00405e20
cmp byte [ebp - 0x18], 0
lea ecx, [ebp - 0x128]
cmove ecx, dword [ebp - 0x12c]
sub esp, 8
add ecx, 4
call fcn.00404bb0
movzx ecx, byte [0x45fa9b]
test eax, eax
mov edx, 1
cmove ecx, edx
add esp, 4
mov byte [0x45fa9b], cl
lea ecx, [ebp - 0x134]
call fcn.00402780
lea ecx, [ebp - 0x6d4]
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - method.t_byteStreamWrite.virtual_0], vtable.t_byteStreamWrite.0
call fcn.00405b40
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x404fd6
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x404fd6
push eax
call fcn.00429847
add esp, 4
cmp byte [ebp - 0x13c], 0
mov byte [0x45fa9a], 1
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x405009
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x405009
push eax
call fcn.00429847
add esp, 4
mov byte [ebp - 4], 5
test esi, esi
je 0x405018
mov ecx, esi
call fcn.00408bf0
mov eax, dword [ebp - 0x6dc]
test eax, eax
je 0x40506e
mov esi, eax
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x6dc], eax
test esi, esi
je 0x40506a
mov dword [esi], vtable.t_str.0
lea ecx, [esi + 0xc]
cmp byte [esi + 0x11c], 0
jne 0x405056
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x405056
push eax
call fcn.00429847
add esp, 4
push 0x128
push esi
call fcn.00421b76
mov eax, dword [ebp - 0x6dc]
add esp, 8
test eax, eax
jne 0x405022
mov al, byte [0x45fa9b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret