Function at 0x5191a2
Capabilities:
Set file attributes

Disassembly:
push 0xc8
mov eax, 0x72b6a0
call fcn.0054dd23
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], eax
je 0x519ab9
mov eax, ebx
call fcn.00456825
test eax, eax
jne 0x51921a
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0xb4], esp
push esi
push eax
call fcn.00452842
call fcn.00455690
add esp, 0x1c
test al, al
je 0x519213
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0xb4], esp
push esi
push eax
call fcn.00452842
call fcn.00455703
add esp, 0x1c
mov al, 1
jmp 0x519abb
cmp byte [ebx + 0x10], 0
je 0x519ab9
or dword [ebp - 0x9c], 0xffffffff
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x58], esp
push esi
push eax
mov byte [ebp - 0x43], 0
call fcn.00452842
call fcn.00455690
add esp, 0x1c
test al, al
je 0x51941c
mov dword [ebp - 0x58], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
lea eax, [ebp - 0xb0]
push eax
lea edx, [ebp - 0x58]
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00518246
test al, al
mov byte [ebp - 0x41], 0
je 0x519396
lea eax, [ebp - 0xb0]
call fcn.00456825
mov esi, eax
mov eax, ebx
call fcn.00456825
cmp esi, eax
jne 0x519396
cmp esi, edi
mov byte [ebp - 0x42], 0
jbe 0x519386
push edi
mov esi, ebx
call fcn.00519c4a
push edi
lea esi, [ebp - 0xb0]
mov dword [ebp - 0x58], eax
call fcn.00519c4a
mov eax, dword [eax]
mov ecx, dword [ebp - 0x58]
cmp eax, dword [ecx]
jne 0x5193a5
push edi
mov esi, ebx
call fcn.00519c4a
add eax, 4
push edi
lea esi, [ebp - 0xb0]
mov dword [ebp - 0x58], eax
call fcn.00519c4a
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x58]
cmp eax, dword [ecx]
jne 0x5193a5
push edi
mov esi, ebx
call fcn.00519c4a
add eax, 8
push edi
lea esi, [ebp - 0xb0]
mov dword [ebp - 0x58], eax
call fcn.00519c4a
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x58]
cmp eax, dword [ecx]
jne 0x5193a5
push edi
call fcn.00519c4a
mov ecx, dword [ebp + 0xc]
cmp dword [eax], ecx
jne 0x51936c
push edi
mov esi, ebx
mov byte [ebp - 0x42], 1
call fcn.00519c4a
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add edx, ecx
cmp edx, dword [eax + 4]
lea esi, [ebp - 0xb0]
ja 0x5193ab
push edi
call fcn.00519c4a
cmp dword [eax + 8], 0xffffffff
je 0x519368
push edi
call fcn.00519c4a
mov eax, dword [eax + 8]
mov dword [ebp - 0x9c], eax
jmp 0x51936c
mov byte [ebp - 0x43], 1
lea eax, [ebp - 0xb0]
inc edi
call fcn.00456825
cmp edi, eax
jb 0x5192ab
cmp byte [ebp - 0x42], 0
jne 0x519390
cmp dword [ebp + 0xc], 0xffffffff
je 0x519390
mov byte [ebp - 0x41], 1
cmp byte [ebp - 0x41], 0
je 0x51940f
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x50]
call fcn.0042dad8
jmp 0x5193e7
mov byte [ebp - 0x41], 1
jmp 0x519380
call fcn.00517714
jmp 0x519ab9
lea esi, [ebp - 0x50]
call fcn.004b0a79
or dword [eax + 8], 0xffffffff
add eax, 0xc
push eax
call fcn.005176b0
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x5193d6
call fcn.0054b876
mov eax, dword [ebp - 0x4c]
cmp eax, dword [esi + 8]
jb 0x5193e3
call fcn.0054b876
add dword [ebp - 0x4c], 0x1c
push dword [ebx + 8]
mov edi, ebx
lea esi, [ebp - 0x98]
call fcn.0042dad8
mov edi, esi
lea esi, [ebp - 0x50]
call fcn.0044de3a
test al, al
jne 0x5193b5
cmp dword [ebp + 0xc], 0xffffffff
je 0x51940f
mov byte [ebp - 0x43], 1
lea esi, [ebp - 0xb0]
call fcn.00517714
jmp 0x519426
cmp dword [ebp + 0xc], 0xffffffff
je 0x519426
mov byte [ebp - 0x43], 1
mov esi, str.BC.PiecePart
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
mov dword [ebp - 0x34], 0x113
call fcn.00456825
push dword [ebx + 4]
mov dword [ebp - 0x30], eax
xor eax, eax
mov edi, ebx
lea esi, [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.0042dad8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
jmp 0x5194b0
lea esi, [ebp - 0x5c]
call fcn.004b0a79
mov esi, eax
lea eax, [esi + 0xc]
call fcn.004a01a8
add dword [ebp - 0x20], eax
cmp dword [esi + 8], 0xffffffff
je 0x519491
mov ecx, ebx
call fcn.005175cb
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], 0
cmp dword [ebp - 0x5c], 0
jne 0x51949c
call fcn.0054b876
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
cmp eax, dword [ecx + 8]
jb 0x5194ac
call fcn.0054b876
add dword [ebp - 0x58], 0x1c
push dword [ebx + 8]
mov edi, ebx
lea esi, [ebp - 0x98]
call fcn.0042dad8
mov edi, esi
lea esi, [ebp - 0x5c]
call fcn.0044de3a
test al, al
jne 0x519468
cmp byte [ebp - 0x43], al
je 0x5194fc
mov ecx, ebx
call fcn.005175cb
push 0
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.006cd970
mov ecx, ebx
mov dword [ebp - 0x9c], eax
call fcn.005175cb
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], 0
mov ecx, ebx
call fcn.005175cb
mov ecx, dword [ebp - 0x30]
lea edi, [ecx + 4]
mov dword [ebp - 0x1c], eax
imul edi, edi, 0xc
mov eax, dword [ebp - 0x20]
shl eax, 4
xor edx, edx
xor esi, esi
add eax, edi
adc edx, esi
add eax, dword [ebp - 0x28]
push esi
adc edx, dword [ebp - 0x24]
add eax, 0xc
adc edx, esi
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xbc], edx
mul dword [ebp - 0x9c]
mov dword [ebp - 0x50], eax
xor eax, eax
add ecx, 4
push 0xc
adc eax, eax
push eax
push ecx
mov dword [ebp - 0x4c], edx
call fcn.0054eab0
mov ecx, dword [ebp - 0x50]
add ecx, eax
mov eax, dword [ebp - 0x4c]
adc eax, edx
mov dword [ebp - 0xc4], eax
mov eax, edi
add eax, dword [ebp - 0x28]
mov dword [ebp - 0xc8], ecx
adc esi, dword [ebp - 0x24]
mov dword [ebp - 0xa8], eax
xor eax, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.004302d2
mov dword [ebp - 4], esi
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x68], 0
je 0x5195d4
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
cmp eax, 0xc
jb 0x5195d4
lea eax, [ebp - 0x40]
push 0
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x58], eax
call fcn.004a0018
mov edi, eax
mov eax, dword [ebp - 0x58]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], 0xc
lea eax, [ebp - 0x34]
push eax
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x6c]
call fcn.00519bcf
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x6c]
call fcn.00519bcf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
call fcn.00519c09
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
call fcn.00519bcf
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x6c]
call fcn.00519bcf
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x88]
call fcn.0042dad8
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
jmp 0x5196b3
lea esi, [ebp - 0x5c]
call fcn.004b0a79
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], edx
jne 0x51965d
mov eax, dword [ebp - 0x9c]
jmp 0x519660
mov eax, dword [eax + 8]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x6c]
call fcn.00519bcf
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x6c]
call fcn.00519bcf
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x6c]
call fcn.00519bcf
mov esi, dword [ebp - 0x5c]
test esi, esi
jne 0x5196a2
call fcn.0054b876
mov eax, dword [ebp - 0x58]
cmp eax, dword [esi + 8]
jb 0x5196af
call fcn.0054b876
add dword [ebp - 0x58], 0x1c
push dword [ebx + 8]
mov edi, ebx
lea esi, [ebp - 0x50]
call fcn.0042dad8
mov edi, esi
lea esi, [ebp - 0x5c]
call fcn.0044de3a
test al, al
jne 0x519637
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x90]
push eax
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x90], 0x5a5a5a5a
call fcn.00519bcf
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x6c]
call fcn.00519c09
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x20]
shl esi, 4
lea edi, [esi + 0xc]
lea eax, [ebp - 0x7c]
call fcn.004302d2
mov dword [ebp - 4], 4
and dword [ebp - 0x84], 0
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x90]
push eax
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x90], 0xa5a5a5a5
mov dword [ebp - 0x88], esi
call fcn.00519bcf
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x7c]
call fcn.00519c09
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x88]
call fcn.0042dad8
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x4c], eax
jmp 0x519873
lea esi, [ebp - 0x50]
call fcn.004b0a79
lea edi, [eax + 0xc]
push dword [edi + 4]
lea esi, [ebp - 0x98]
mov dword [ebp - 0x58], eax
call fcn.0042dad8
jmp 0x51982d
lea esi, [ebp - 0x98]
call fcn.004b0a79
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x24], ecx
call fcn.00519bcf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
call fcn.00519c09
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x7c]
call fcn.00519bcf
cmp dword [ebp - 0x98], 0
jne 0x519810
call fcn.0054b876
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x98]
cmp eax, dword [ecx + 8]
jb 0x519826
call fcn.0054b876
add dword [ebp - 0x94], 0x10
mov edi, dword [ebp - 0x58]
push dword [edi + 0x14]
add edi, 0xc
lea esi, [ebp - 0xd0]
call fcn.0042dad8
mov edi, esi
lea esi, [ebp - 0x98]
call fcn.0044de3a
test al, al
jne 0x5197b7
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x519862
call fcn.0054b876
mov eax, dword [ebp - 0x4c]
cmp eax, dword [esi + 8]
jb 0x51986f
call fcn.0054b876
add dword [ebp - 0x4c], 0x1c
push dword [ebx + 8]
mov edi, ebx
lea esi, [ebp - 0x88]
call fcn.0042dad8
mov edi, esi
lea esi, [ebp - 0x50]
call fcn.0044de3a
test al, al
jne 0x519799
or dword [ebp - 0x8c], 0xffffffff
xor edi, edi
mov byte [ebp - 0x88], 1
mov byte [ebp - 0x87], al
mov dword [ebp - 0x84], edi
mov eax, dword [ebp - 0xb8]
push edi
push edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call fcn.00477d9b
push dword [ebp - 0xbc]
lea esi, [ebp - 0x8c]
push dword [ebp - 0xc0]
call fcn.00477f35
cmp dword [ebp - 0x68], edi
je 0x5198ea
mov edi, dword [ebp - 0x64]
sub edi, dword [ebp - 0x68]
push 0
lea esi, [ebp - 0x6c]
call fcn.004a0018
push edi
push eax
push 0
push 0
lea edi, [ebp - 0x8c]
call fcn.00478634
cmp dword [ebp + 0x18], 0
je 0x51992c
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [ebp - 0xb4]
xor ecx, ecx
add eax, dword [ebp - 0xc8]
adc ecx, dword [ebp - 0xc4]
push ecx
push eax
call fcn.00478634
cmp dword [ebp - 0x78], 0
jne 0x519936
xor edi, edi
jmp 0x51993c
mov edi, dword [ebp - 0x74]
sub edi, dword [ebp - 0x78]
push 0
lea esi, [ebp - 0x7c]
call fcn.004a0018
push edi
push eax
push dword [ebp - 0xa4]
lea edi, [ebp - 0x8c]
push dword [ebp - 0xa8]
call fcn.00478634
mov esi, edi
mov byte [ebp - 0x42], al
call fcn.00477e46
cmp byte [ebp - 0x42], 0
mov dword [ebp - 4], 7
jne 0x5199b0
lea esi, [ebp - 0x8c]
call fcn.00477e46
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x78], esi
je 0x51999b
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x78]
push dword [ebp - 0x78]
call fcn.0045e6eb
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x68], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
jmp 0x519aa8
mov eax, dword [ebp - 0xb8]
cmp dword [eax + 0x18], 8
jb 0x5199c1
mov eax, dword [eax + 4]
jmp 0x5199c4
add eax, 4
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x50]
call fcn.0042dad8
jmp 0x519a08
lea esi, [ebp - 0x50]
call fcn.004b0a79
mov ecx, dword [ebp + 0xc]
cmp dword [eax], ecx
je 0x519a28
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x5199f7
call fcn.0054b876
mov eax, dword [ebp - 0x4c]
cmp eax, dword [esi + 8]
jb 0x519a04
call fcn.0054b876
add dword [ebp - 0x4c], 0x1c
push dword [ebx + 8]
mov edi, ebx
lea esi, [ebp - 0xa8]
call fcn.0042dad8
mov edi, esi
lea esi, [ebp - 0x50]
call fcn.0044de3a
test al, al
jne 0x5199dc
jmp 0x519a31
mov ecx, dword [ebp - 0x9c]
mov dword [eax + 8], ecx
lea esi, [ebp - 0x8c]
call fcn.00477e46
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x78], esi
je 0x519a56
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x78]
push dword [ebp - 0x78]
call fcn.0045e6eb
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x68], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
je 0x519213
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x68]
push dword [ebp - 0x68]
call fcn.0045e6eb
pop ecx
jmp 0x519213
je 0x519ab9
mov ecx, dword [ebp - 0x60]
push dword [ebp - 0x68]
sub ecx, dword [ebp - 0x68]
call fcn.0045e6eb
pop ecx
xor al, al
call fcn.0054dd7f
ret 0x14