Function at 0x401f00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e97
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x42a030]
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
lea eax, [ebp - 0x1d0]
push eax
mov esi, ecx
call fcn.004051e0
mov dword [ebp - 4], 0
mov edx, dword [0x42c0e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x42c0e4
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x120], edi
mov byte [ebp - 4], 1
mov edx, dword [0x42c0e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x42c0e4
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x128], ebx
push esi
mov byte [ebp - 4], 2
call fcn.0041e490
lea ecx, [ebp - 0x140]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x11c], esi
call fcn.0041e340
test eax, eax
je 0x402011
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401fbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fdc
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.004052d0
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041b199
add esp, 4
mov eax, 1
jmp 0x4023c1
cmp dword [ebp - 0x140], 0
mov dword [ebp - 0x12c], 0
jbe 0x402348
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x228]
push edx
push esi
call fcn.0041e310
test eax, eax
jne 0x4023dd
test byte [ebp - 0x1ec], 0x10
jne 0x402060
push esi
call fcn.0041e720
mov eax, dword [ebp - 0x208]
push eax
call fcn.00409960
mov ecx, dword [ebp - 0x208]
add esp, 4
push ecx
push eax
push esi
mov dword [ebp - 0x124], eax
call fcn.0041ebf0
push 3
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x32c]
lea edx, [ebp - 0x328]
push ecx
mov dword [ebp - 0x32c], edx
call fcn.00406ef0
sub esp, 0x104
mov edi, esp
mov byte [ebp - 4], 3
mov ecx, 0x41
lea esi, [ebp - 0x32c]
rep movsd dword es:[edi], dword [esi]
push str.._s
lea edi, [ebp - 0x120]
call fcn.004084e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x32c]
lea edx, [ebp - 0x328]
add esp, 0x108
cmp eax, edx
je 0x4020f0
push eax
call fcn.00409788
add esp, 4
push 0x4274a8
push 0x4274ac
lea eax, [ebp - 0x120]
push eax
call fcn.00404770
mov edi, dword [ebp - 0x120]
push 3
push edi
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
push edx
mov dword [ebp - 0x2ac], ecx
call fcn.00406fb0
mov eax, dword [ebp - 0x2ac]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
cmp eax, ecx
je 0x40214d
push eax
call fcn.00409788
add esp, 4
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x120]
push edx
mov eax, 1
lea ecx, [ebp - 0x130]
call fcn.00404a30
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00404cb0
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4022af
push 0x33
mov ecx, edi
lea edx, [ebp - 0x1c4]
call fcn.004068f0
test eax, eax
jne 0x4021f3
mov ecx, dword [ebp - 0x1d0]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x1c8]
lea ecx, [ebp + ecx - 0x1d0]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x4021e1
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4021f3
push 0
call fcn.00401b20
cmp dword [ebp - 0x178], 0
je 0x40225f
mov edx, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x208]
push edx
lea eax, [ebp - 0x1c8]
push eax
call fcn.00404dd0
lea esi, [ebp - 0x1c4]
call fcn.00406990
test eax, eax
jne 0x4022af
mov ecx, dword [ebp - 0x1d0]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x1c8]
lea ecx, [ebp + ecx - 0x1d0]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x40224b
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4022af
push 0
call fcn.00401b20
jmp 0x4022af
mov edx, dword [ebp - 0x1ec]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00409941
add esp, 8
test eax, eax
jl 0x402458
cmp eax, dword [edi - 8]
jg 0x402458
mov edx, dword [ebp - 0x11c]
xor ecx, ecx
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], cx
call fcn.0041e270
mov eax, dword [ebp - 0x124]
push eax
call fcn.004095dd
add esp, 4
mov ecx, dword [ebp - 0x1ec]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00409941
add esp, 8
test eax, eax
jl 0x402458
cmp eax, dword [edi - 8]
jg 0x402458
mov esi, dword [ebp - 0x11c]
xor edx, edx
mov dword [edi - 0xc], eax
push esi
mov word [edi + eax*2], dx
call fcn.0041e270
mov eax, dword [ebp - 0x124]
push eax
call fcn.004095dd
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x13c]
add esp, 4
add ecx, 0xffffffff
adc eax, 0xffffffff
xor edx, edx
cmp edx, eax
ja 0x40232f
jb 0x402321
cmp dword [ebp - 0x12c], ecx
jae 0x40232f
push esi
call fcn.0041e3e0
test eax, eax
jne 0x402462
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp eax, dword [ebp - 0x140]
jb 0x402028
push esi
call fcn.0041e230
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402374
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402394
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.004052d0
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041b199
add esp, 4
xor eax, eax
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.004095ce
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402403
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402423
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.004052d0
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041b199
add esp, 4
mov eax, 1
jmp 0x4023c1
push 0x80070057
call fcn.00401000
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402488
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024a8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.004052d0
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041b199
add esp, 4
mov eax, 1
jmp 0x4023c1