Function at 0x413f90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45296c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10048
call fcn.00432f70
mov eax, dword [0x46dec0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov esi, edx
mov ecx, dword [esi + 8]
mov edx, dword [0x46f470]
mov edi, dword [edx]
push eax
push ecx
push 0x18f
push str._Patch:_d_existed_file:__s_s
push edx
call dword [edi + 4]
mov eax, dword [ebx]
mov ecx, dword [esi + 8]
push eax
push ecx
push 0x191
push str._Patch:_d_existed_file:__s_s
push 0x46f474
call fcn.0040ac70
add esp, 0x28
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10018], eax
mov eax, dword [ebx]
mov esi, dword [esi + 8]
push eax
push esi
lea eax, [ebp - 0x10018]
push str._s_s
push eax
mov dword [ebp - 4], 0
call fcn.00402400
mov edi, dword [ebp - 0x10018]
add esp, 0x10
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x1004c]
call fcn.0044a872
lea ecx, [ebp - 0x10034]
mov byte [ebp - 4], 1
call fcn.00444df4
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10024], eax
xor esi, esi
lea ecx, [ebp - 0x10024]
mov dword [ebp - 0x1002c], esi
mov dword [ebp - 0x10028], 0xffffffff
call fcn.00401430
lea eax, [ebp - 0x10034]
push eax
push 0x8a0a1
push edi
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 3
call fcn.0044ab0a
test eax, eax
jne 0x414171
mov edx, dword [ebp - 0x10028]
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push edx
push 1
push 0x1a2
push str._Patch:_d_open__d:_d
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10028]
push eax
push 1
push 0x1a3
push str._Patch:_d_open__d:_d
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp - 0x10024]
mov ebx, dword [ebp - 0x10028]
add eax, 0xfffffff0
add esp, 0x28
or esi, 1
mov byte [ebp - 4], 1
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 0
call fcn.0044a8b1
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414168
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, ebx
mov edx, esi
jmp 0x414678
mov eax, dword [ebp - 0x1004c]
push esi
push esi
push esi
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 4
call dword [eax + 0x28]
mov dword [ebp - 0x1001c], esi
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1001c]
cmp edx, dword [ecx + 0x128]
jae 0x414520
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 8
lea ecx, [ebp - 0x1003c]
push ecx
mov ecx, edi
call dword [eax + 4]
mov esi, edx
test esi, esi
mov dword [ebp - 0x10058], eax
je 0x41426f
mov ecx, dword [0x46f470]
mov edx, dword [ecx]
push eax
push esi
push 0x1b2
push str._Patch:_d_psread__d:_d
push ecx
call dword [edx + 4]
mov edi, dword [ebp - 0x10058]
add esp, 0x14
push edi
push esi
push 0x1b3
push str._Patch:_d_psread__d:_d
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 1
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414230
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 0
call fcn.0044a8b1
mov eax, dword [ebp - 0x10018]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414266
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
mov edx, esi
jmp 0x414678
cmp eax, 8
je 0x41431e
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push 0x1b7
push str._Patch:_d_not_enough_tfs
push eax
call dword [ecx + 4]
add esp, 0xc
push 0x1b8
push str._Patch:_d_not_enough_tfs
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4142d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 0
call fcn.0044a8b1
mov eax, dword [ebp - 0x10018]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4144f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
mov edx, 3
jmp 0x414678
mov eax, dword [ebp - 0x1001c]
add eax, 8
push 1
mov dword [ebp - 0x1001c], eax
mov eax, dword [ebp - 0x1003c]
push 0
push eax
lea ecx, [ebp - 0x1004c]
call fcn.0044a610
mov ecx, dword [ebp - 0x10038]
mov dword [ebp - 0x10020], ecx
nop
test ecx, ecx
jbe 0x414459
mov eax, 0x10000
cmp ecx, eax
jae 0x414363
mov eax, ecx
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x10014]
push eax
mov ecx, edi
call dword [edx + 4]
mov edi, edx
test edi, edi
mov esi, eax
je 0x41441e
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push esi
push edi
push 0x1c9
push str._Patch:_d_psread__d:_d
push eax
call dword [ecx + 4]
add esp, 0x14
push esi
push edi
push 0x1ca
push str._Patch:_d_psread__d:_d
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 1
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4143df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 0
call fcn.0044a8b1
mov eax, dword [ebp - 0x10018]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414415
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
mov edx, edi
jmp 0x414678
test esi, esi
je 0x414451
mov edi, dword [ebp - 0x10020]
push esi
lea eax, [ebp - 0x10014]
sub edi, esi
push eax
lea ecx, [ebp - 0x1004c]
mov dword [ebp - 0x10020], edi
call fcn.0044a5c5
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10020]
jmp 0x414350
mov ecx, dword [ebp - 0x10020]
test ecx, ecx
je 0x414501
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push 0x1d6
push str._Patch:_d_early_eof
push eax
call dword [ecx + 4]
add esp, 0xc
push 0x1d7
push str._Patch:_d_early_eof
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4144bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 0
call fcn.0044a8b1
mov eax, dword [ebp - 0x10018]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4144f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
mov edx, 3
jmp 0x414678
mov ecx, dword [ebp - 0x1001c]
mov eax, dword [ebp - 0x10038]
mov edi, dword [ebp - 0x10018]
add ecx, eax
mov dword [ebp - 0x1001c], ecx
jmp 0x414190
lea ecx, [ebp - 0x1004c]
call fcn.0044a6ab
lea ecx, [ebp - 0x1004c]
call fcn.0044a810
mov eax, dword [ebx]
mov ecx, dword [0x46f470]
mov edx, dword [ecx]
push eax
push 0x1e9
push str._Patch:_d_existed_file__s_ok
push ecx
mov dword [ebp - 4], 3
call dword [edx + 4]
mov ebx, dword [ebx]
push ebx
push 0x1ea
push str._Patch:_d_existed_file__s_ok
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0x20
mov byte [ebp - 4], 1
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41459e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 0
call fcn.0044a8b1
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4145ce
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
xor eax, eax
xor edx, edx
jmp 0x414678
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00432fde
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret