Function at 0x418340
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45700c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10048
call fcn.00437610
mov eax, dword [0x473eb8]
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 [0x475498]
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 0x47549c
call fcn.0040f2c0
add esp, 0x28
call fcn.00449143
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.004037b0
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.0044ee4e
lea ecx, [ebp - 0x10034]
mov byte [ebp - 4], 1
call fcn.004493d0
mov dword [ebp - 0x10034], 0x4638e4
call fcn.00449143
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.00401740
lea eax, [ebp - 0x10034]
push eax
push 0x8a0a1
push edi
lea ecx, [ebp - 0x1004c]
mov byte [ebp - 4], 3
call fcn.0044f0e6
test eax, eax
jne 0x418521
mov edx, dword [ebp - 0x10028]
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
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 - 0x10034], 0x4638e4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184e8
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.0044ee8d
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 0x418518
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, ebx
mov edx, esi
jmp 0x418a28
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 0x4188d0
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 0x41861f
mov ecx, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 1
mov dword [ebp - 0x10034], 0x4638e4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4185e0
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.0044ee8d
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 0x418616
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
mov edx, esi
jmp 0x418a28
cmp eax, 8
je 0x4186ce
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x10034], 0x4638e4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418685
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.0044ee8d
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 0x4188a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
mov edx, 3
jmp 0x418a28
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.0044ebec
mov ecx, dword [ebp - 0x10038]
mov dword [ebp - 0x10020], ecx
nop
test ecx, ecx
jbe 0x418809
mov eax, 0x10000
cmp ecx, eax
jae 0x418713
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 0x4187ce
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 1
mov dword [ebp - 0x10034], 0x4638e4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41878f
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.0044ee8d
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 0x4187c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
mov edx, edi
jmp 0x418a28
test esi, esi
je 0x418801
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.0044eba1
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10020]
jmp 0x418700
mov ecx, dword [ebp - 0x10020]
test ecx, ecx
je 0x4188b1
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x10034], 0x4638e4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41886c
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.0044ee8d
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 0x4188a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
mov edx, 3
jmp 0x418a28
mov ecx, dword [ebp - 0x1001c]
mov eax, dword [ebp - 0x10038]
mov edi, dword [ebp - 0x10018]
add ecx, eax
mov dword [ebp - 0x1001c], ecx
jmp 0x418540
lea ecx, [ebp - 0x1004c]
call fcn.0044ec87
lea ecx, [ebp - 0x1004c]
call fcn.0044edec
mov eax, dword [ebx]
mov ecx, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov eax, dword [ebp - 0x10024]
add eax, 0xfffffff0
add esp, 0x20
mov byte [ebp - 4], 1
mov dword [ebp - 0x10034], 0x4638e4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41894e
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.0044ee8d
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 0x41897e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
xor eax, eax
xor edx, edx
jmp 0x418a28
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004375fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret