Function at 0x402b10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4269f4
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x434290]
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 edi, ecx
push 0xc0
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x258], 0
push 0
push eax
call fcn.004120a0
mov dword [ebp - 0x1e0], 0x431850
mov dword [ebp - 0x1d0], 0x431848
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x258], 1
lea ecx, [ebp - 0x1e0]
push eax
call fcn.00407300
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x1e4], eax
lea ecx, [ebp - 0x1c8]
call fcn.004073b0
mov dword [ebp - 4], 2
call fcn.00401b40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402bfe
push 0x80004005
call fcn.00401860
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x11c], esi
mov byte [ebp - 4], 3
call fcn.00401b40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402c2e
push 0x80004005
call fcn.00401860
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1f4], ebx
push edi
mov byte [ebp - 4], 4
call fcn.0040a200
mov edi, eax
lea eax, [ebp - 0x1f0]
push eax
push edi
mov dword [ebp - 0x25c], edi
call fcn.0040a0b0
test eax, eax
jne 0x402fcb
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x1f0], eax
jbe 0x402fb7
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x250]
push eax
push edi
call fcn.0040a080
test eax, eax
jne 0x402fcb
test byte [ebp - 0x214], 0x10
jne 0x402caf
push edi
call fcn.0040a490
push dword [ebp - 0x230]
call fcn.0040e384
add esp, 4
mov dword [ebp - 0x260], eax
push dword [ebp - 0x230]
push eax
push edi
call fcn.0040a960
lea eax, [ebp - 0x36c]
mov dword [ebp - 0x370], eax
lea ecx, [ebp - 0x370]
push 3
lea eax, [ebp - 0x118]
push eax
call fcn.004078d0
sub esp, 0x104
mov byte [ebp - 4], 5
mov edi, esp
lea eax, [ebp - 0x11c]
mov ecx, 0x41
lea esi, [ebp - 0x370]
rep movsd dword es:[edi], dword [esi]
push str.._s
push eax
call fcn.00408b00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x36c]
mov eax, dword [ebp - 0x370]
add esp, 0x10c
cmp eax, ecx
je 0x402d3d
push eax
call fcn.0040d339
add esp, 4
push 0x4314d8
push 0x4316b0
lea ecx, [ebp - 0x11c]
call fcn.004052d0
mov esi, dword [ebp - 0x11c]
lea eax, [ebp - 0x2ec]
push 3
push esi
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], eax
call fcn.00407990
push dword [ebp - 0x2f0]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x2ec]
cmp eax, ecx
je 0x402d97
push eax
call fcn.0040d339
add esp, 4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004055c0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00405850
mov byte [ebp - 4], 4
or edx, 0xffffffff
mov edi, dword [ebp - 0x264]
add edi, 0xfffffff0
mov byte [ebp - 0x251], al
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402df2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x251]
test al, al
je 0x402f17
push ecx
push 0x33
push esi
lea ecx, [ebp - 0x1c8]
call fcn.00407440
test eax, eax
lea ecx, [ebp - 0x1e0]
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
jne 0x402e2f
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x402e3e
or eax, 4
jmp 0x402e3e
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
and eax, 0x17
test dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
je 0x402e50
push 0
call fcn.00402650
cmp dword [ebp - 0x178], 0
je 0x402ebe
push dword [ebp - 0x22c]
mov edi, dword [ebp - 0x260]
lea ecx, [ebp - 0x1d0]
push dword [ebp - 0x230]
push edi
call fcn.00405d80
lea ecx, [ebp - 0x1c8]
call fcn.00407500
test eax, eax
jne 0x402f1d
mov eax, dword [ebp - 0x1e0]
lea ecx, [ebp - 0x1e0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x402eaa
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402f1d
push 0
call fcn.00402650
jmp 0x402f1d
push dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi - 8]
push esi
call fcn.0040d533
add esp, 8
test eax, eax
js 0x402fc1
cmp eax, dword [esi - 8]
jg 0x402fc1
push dword [ebp - 0x25c]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00409fe0
mov edi, dword [ebp - 0x260]
push edi
call fcn.0040d692
add esp, 4
mov eax, 0x8123
test edi, edi
cmovne edi, eax
jmp 0x402f1d
mov edi, dword [ebp - 0x260]
push dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi - 8]
push esi
call fcn.0040d533
add esp, 8
test eax, eax
js 0x402fc1
cmp eax, dword [esi - 8]
jg 0x402fc1
push dword [ebp - 0x25c]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00409fe0
push edi
call fcn.0040d692
mov ecx, dword [ebp - 0x1f0]
add esp, 4
mov eax, dword [ebp - 0x1ec]
mov edx, ecx
add edx, 0xffffffff
adc eax, 0xffffffff
xor edi, edi
cmp edi, eax
ja 0x402f9c
jb 0x402f84
cmp dword [ebp - 0x258], edx
jae 0x402f9c
mov edi, dword [ebp - 0x25c]
push edi
call fcn.0040a150
test eax, eax
jne 0x402fcb
mov ecx, dword [ebp - 0x1f0]
jmp 0x402fa2
mov edi, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x258]
inc edx
mov dword [ebp - 0x258], edx
cmp edx, ecx
jb 0x402c77
push edi
call fcn.00409fa0
xor edi, edi
jmp 0x402fd0
push 0x80070057
call fcn.00401860
mov edi, 1
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402fee
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40300c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x1e4], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
test eax, eax
je 0x403084
mov esi, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x184]
cmp dword [esi], ecx
jne 0x403084
mov edx, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x190]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebp - 0x1ac]
mov dword [eax], ecx
mov eax, dword [ebp - 0x19c]
mov dword [eax], edx
mov eax, dword [ebp - 0x178]
cmp byte [ebp - 0x17c], 0
je 0x40315f
test eax, eax
je 0x4030ae
lea ecx, [ebp - 0x1c8]
call fcn.00407650
push dword [ebp - 0x178]
call fcn.0040f054
add esp, 4
lea eax, [ebp - 0x1c4]
mov byte [ebp - 0x17c], 0
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x198], eax
mov eax, dword [0x436ee0]
mov byte [ebp - 0x183], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x188], 0
mov esi, dword [ebp - 0x194]
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x403193
mov ecx, dword [esi]
test ecx, ecx
je 0x40318a
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40318a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
call fcn.0040d20b
add esp, 4
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1e4], eax
mov eax, dword [ebp - 0x1d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1d4], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x1e0]
push eax
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x1e4], ecx
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0042461d
add esp, 4
mov eax, edi
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.0040d210
mov esp, ebp
pop ebp
ret