Function at 0x4cd600
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540964
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x174], esi
xor edi, edi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x14c], edi
lea eax, [esi + 0x68]
mov dword [ebp - 0x130], edi
cmp dword [esi + 0x78], edi
jne 0x4cd6f5
mov ecx, dword [esi + 0x98]
lea eax, [ebp - 0x164]
push eax
add ecx, 0xf8
call fcn.004c5390
mov edi, 0x10
lea ecx, [ebp - 0x164]
lea eax, [esi + 0x68]
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x14c], edi
cmp eax, ecx
je 0x4cd6b2
mov ecx, eax
call fcn.00408210
movups xmm0, xmmword [ebp - 0x164]
lea eax, [esi + 0x68]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x154]
movq qword [eax + 0x10], xmm0
jmp 0x4cd6f5
mov ecx, dword [ebp - 0x150]
cmp ecx, 8
jb 0x4cd6f5
mov edx, dword [ebp - 0x164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd6e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
lea eax, [esi + 0x68]
cmp byte [esi + 0x20], 0
je 0x4cd732
xor eax, eax
mov dword [ebp - 0x80], 0
push eax
push 0x559640
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call fcn.00408270
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x80]
or eax, 1
jmp 0x4cd77d
push 0x560568
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00408180
lea ecx, [ebp - 0x18c]
call fcn.004138d0
add esp, 0x18
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x164]
or edi, 2
mov edx, eax
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x14c], edi
call fcn.004175c0
mov ecx, eax
add esp, 4
mov eax, edi
or eax, 4
movups xmm0, xmmword [ecx]
xor edx, edx
mov dword [ebp - 0x130], eax
movups xmmword [ebp - 0xd0], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0xc0], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
mov dword [ebp - 4], 2
test al, 4
je 0x4cd824
mov ecx, dword [ebp - 0x150]
and eax, 0xfffffffb
mov dword [ebp - 0x130], eax
cmp ecx, 8
jb 0x4cd807
mov edx, dword [ebp - 0x164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd7f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee34
push ecx
push edx
call fcn.00517162
mov eax, dword [ebp - 0x130]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 7
mov word [ebp - 0x164], cx
mov byte [ebp - 4], 3
test al, 2
je 0x4cd898
mov ecx, dword [ebp - 0x178]
and eax, 0xfffffffd
mov dword [ebp - 0x130], eax
cmp ecx, 8
jb 0x4cd87b
mov edx, dword [ebp - 0x18c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd86b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee34
push ecx
push edx
call fcn.00517162
mov eax, dword [ebp - 0x130]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 7
mov word [ebp - 0x18c], cx
mov byte [ebp - 4], 4
test al, 1
je 0x4cd8e3
mov ecx, dword [ebp - 0x6c]
and eax, 0xfffffffe
mov dword [ebp - 0x130], eax
cmp ecx, 8
jb 0x4cd8e3
mov edx, dword [ebp - 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd8d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee34
push ecx
push edx
call fcn.00517162
add esp, 8
cmp byte [esi + 0x20], 0
jne 0x4cd932
sub esp, 0x18
mov ecx, esp
push 0xf
push str.CategoryFolders
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
mov ecx, 2
call fcn.004ebb30
add esp, 0x18
cmp eax, 2
jl 0x4cd932
push 0
push 0x559640
lea ecx, [ebp - 0xd0]
call fcn.00408270
lea eax, [esi + 0x50]
push eax
lea ecx, [ebp - 0x80]
call fcn.00408180
mov byte [ebp - 4], 5
cmp byte [esi + 0x20], 0
jne 0x4cd9e5
mov eax, dword [esi + 0x98]
cmp byte [eax + 0x4b8], 0
jne 0x4cd9e5
lea ecx, [ebp - 0x164]
call fcn.004ece40
mov edi, dword [ebp - 0x130]
lea eax, [ebp - 0x164]
lea edx, [esi + 0x50]
or edi, 0x20
cmp edx, eax
je 0x4cd9a3
mov ecx, edx
call fcn.00408210
movups xmm0, xmmword [ebp - 0x164]
lea edx, [esi + 0x50]
movups xmmword [edx], xmm0
movq xmm0, qword [ebp - 0x154]
movq qword [edx + 0x10], xmm0
jmp 0x4cd9ee
mov ecx, dword [ebp - 0x150]
cmp ecx, 8
jb 0x4cd9ee
mov edx, dword [ebp - 0x164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd9d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee39
push ecx
push edx
call fcn.00517162
add esp, 8
jmp 0x4cd9eb
mov edi, dword [ebp - 0x130]
lea edx, [esi + 0x50]
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x148], edx
cmovae ecx, dword [ebp - 0x80]
cmp dword [edx + 0x14], 8
jb 0x4cda0d
mov eax, dword [edx]
mov dword [ebp - 0x148], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14c], eax
cmp eax, dword [ebp - 0x70]
jne 0x4cda51
test eax, eax
je 0x4cdb00
mov eax, dword [ebp - 0x148]
sub eax, ecx
mov dword [ebp - 0x148], eax
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x4cda51
mov eax, dword [ebp - 0x148]
add ecx, 2
sub dword [ebp - 0x14c], 1
jne 0x4cda31
jmp 0x4cdb00
sub esp, 0x18
lea eax, [ebp - 0x80]
mov esi, esp
push str.___doesnt__exist_or_has_been_changed_so_SegmentManager_uses_default_OutPath
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00408180
mov dl, 1
lea ecx, [ebp - 0x164]
call fcn.00415ac0
add esp, 0x18
push 0x13
push str.Original_OutPath__
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040b5e0
mov dword [ebp - 0x2c], 0
or edi, 0x40
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.0040ca30
mov esi, dword [ebp - 0x174]
add esp, 4
mov ecx, esi
push 0
call fcn.004cf950
lea ecx, [ebp - 0x2c]
call fcn.004028f0
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 5
call fcn.004028f0
lea edx, [esi + 0x50]
mov ecx, dword [edx + 0x10]
mov eax, bind
sub eax, ecx
cmp eax, dword [ebp - 0xc0]
jb 0x4cee2f
cmp dword [edx + 0x14], 8
jb 0x4cdb1e
mov edx, dword [edx]
push dword [ebp - 0xc0]
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
cmovae eax, dword [ebp - 0xd0]
push eax
push ecx
push edx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x68]
call fcn.004097f0
or edi, 0x80
mov dword [ebp - 0x130], edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cdb75
test al, 0x10
jne 0x4cdb7d
lea ecx, [ebp - 0x68]
call fcn.00408b60
cmp byte [esi + 0x20], 0
jne 0x4cdc08
sub esp, 0x18
lea eax, [ebp - 0x68]
mov edi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00408180
mov dl, 1
lea ecx, [ebp - 0x18c]
call fcn.00415ac0
add esp, 0x18
mov esi, eax
push 0x12
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 9
push eax
call fcn.004c3170
push esi
push eax
push dword [ebp - 0x13c]
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00409d30
mov esi, dword [ebp - 0x174]
mov edi, dword [ebp - 0x130]
or edi, 0x100
mov ecx, dword [esi + 0x98]
call fcn.004c2e90
lea ecx, [ebp - 0x164]
call fcn.004028f0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 8
call fcn.004028f0
sub esp, 0x18
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.00408180
lea ecx, [ebp - 0x164]
call fcn.00414900
mov ecx, eax
add esp, 0x18
lea eax, [esi + 0x68]
mov dword [ebp - 0x144], ecx
cmp eax, ecx
je 0x4cdc64
mov ecx, eax
call fcn.00408210
mov ecx, dword [ebp - 0x144]
xor eax, eax
movups xmm0, xmmword [ecx]
movups xmmword [esi + 0x68], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x78], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov ecx, dword [ebp - 0x150]
cmp ecx, 8
jb 0x4cdca4
mov edx, dword [ebp - 0x164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cdc9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee3e
push ecx
push edx
call fcn.00517162
add esp, 8
sub esp, 0x18
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.00408180
lea ecx, [ebp - 0x164]
call fcn.00413210
add esp, 0x18
mov edx, 0x559640
mov ecx, eax
call fcn.004098b0
mov ecx, dword [ebp - 0x150]
mov byte [ebp - 0x131], al
cmp ecx, 8
jb 0x4cdd18
mov edx, dword [ebp - 0x164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cdd08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee43
push ecx
push edx
call fcn.00517162
mov al, byte [ebp - 0x131]
add esp, 8
lea ecx, [esi + 0x68]
test al, al
je 0x4cddd2
mov edx, dword [ecx + 0x10]
mov eax, bind
sub eax, edx
cmp eax, 4
jb 0x4cee2f
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4cdd40
mov eax, dword [ecx]
push edx
push eax
push 4
push str.File
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x164]
call fcn.004097f0
lea eax, [ebp - 0x164]
or edi, 0x200
lea ecx, [esi + 0x68]
cmp ecx, eax
je 0x4cdd8f
call fcn.00408210
movups xmm0, xmmword [ebp - 0x164]
lea ecx, [esi + 0x68]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x154]
movq qword [ecx + 0x10], xmm0
jmp 0x4cddd2
mov eax, dword [ebp - 0x150]
cmp eax, 8
jb 0x4cddd2
mov edx, dword [ebp - 0x164]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cddc5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
lea ecx, [esi + 0x68]
mov edx, dword [ecx + 0x10]
mov eax, bind
sub eax, dword [ebp - 0x58]
cmp eax, edx
jb 0x4cee2f
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
mov dword [ebp - 0x144], ecx
cmovae eax, dword [ebp - 0x68]
cmp dword [ecx + 0x14], 8
jb 0x4cde00
mov ecx, dword [ecx]
jmp 0x4cde06
mov ecx, dword [ebp - 0x144]
push edx
push ecx
push dword [ebp - 0x58]
push eax
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x50]
call fcn.004097f0
or edi, 0x400
mov dword [ebp - 0x130], edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.004102e0
test al, al
je 0x4ce0ed
cmp byte [esi + 0x20], 0
je 0x4cdfb6
lea ecx, [ebp - 0x50]
call fcn.00408d80
cmp dword [esi + 0x28], eax
jne 0x4cdf9f
cmp dword [esi + 0x2c], edx
jne 0x4cdf9f
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x4cde99
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cde8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 8
jb 0x4cdee7
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cdedd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], 7
cmp eax, 8
jb 0x4cdf41
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x80]
mov edx, eax
cmp ecx, 0x1000
jb 0x4cdf37
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x140], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4cee4d
mov eax, dword [ebp - 0x140]
push ecx
push eax
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0xbc]
cmp ecx, 8
jb 0x4cdf81
mov edx, dword [ebp - 0xd0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cdf77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ce0ed
sub esp, 0x18
lea eax, [ebp - 0x68]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00408180
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.00408180
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xb
call fcn.00416760
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x144], eax
add esp, 0x30
cmp ecx, eax
je 0x4ce027
call fcn.00408210
mov eax, dword [ebp - 0x144]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x150]
cmp ecx, 8
jb 0x4ce067
mov edx, dword [ebp - 0x164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce05d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee48
push ecx
push edx
call fcn.00517162
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00408180
mov ecx, dword [esi + 0x98]
call fcn.004c0970
mov edx, dword [ebp - 0x58]
mov eax, bind
sub eax, edx
cmp eax, dword [ebp - 0x40]
jb 0x4cee2f
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
push dword [ebp - 0x40]
cmovae ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x164]
call fcn.004097f0
or edi, 0x800
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x130], edi
call fcn.00408210
movups xmm0, xmmword [ebp - 0x164]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [ebp - 0x154]
movq qword [ebp - 0x40], xmm0
push 0x38
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.00519680
sub esp, 0xc
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00408180
lea ecx, [ebp - 0xb8]
call fcn.004084d0
push 0x38
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0xd
push 0
push eax
call fcn.00519680
sub esp, 0xc
mov ecx, esp
push 0
push 0x559640
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00408270
lea ecx, [ebp - 0x108]
call fcn.004084d0
push 8
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0xe
push eax
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb8]
call dword [eax + 4]
sub esp, 0x18
mov ecx, esp
push 0x12
push str.ServerCreationDate
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
mov ecx, 2
call fcn.004ebb30
add esp, 0x18
cmp eax, 2
jge 0x4ce203
cmp dword [esi + 0x18], 0
je 0x4ce203
sub esp, 0x18
lea eax, [esi + 8]
mov ecx, esp
push eax
call fcn.00402a10
call fcn.0040c5d0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xb8]
mov eax, dword [ebp - 0xb8]
add esp, 0x18
mov dword [ebp - 0x30], edx
mov eax, dword [eax + 0x34]
call eax
test al, al
je 0x4ce203
cmp dword [ebp - 0x34], 0
ja 0x4ce1f0
cmp dword [ebp - 0x30], 0
jbe 0x4ce203
lea eax, [ebp - 0x34]
push eax
push 0
push eax
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [esi + 0xa0], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
jne 0x4ce436
mov eax, dword [esi + 0x84]
xor edx, edx
mov ecx, dword [esi + 0x80]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x144], eax
test eax, eax
je 0x4ce267
xor edi, edi
mov dword [ebp - 0x138], edi
nop dword [eax]
mov ecx, dword [ecx + edi*4]
mov eax, dword [ecx + 0x28]
or eax, dword [ecx + 0x2c]
je 0x4ce43e
mov ecx, dword [esi + 0x80]
inc edx
movzx edi, dx
mov dword [ebp - 0x138], edi
cmp edi, dword [ebp - 0x144]
jb 0x4ce240
sub esp, 0x18
mov ecx, esp
push 0x3a
push str.Internal_Error._Merging_Failed.Can_not_find_first_Segment.
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
push 2
mov ecx, esi
call fcn.004cf950
mov eax, dword [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4ce2b3
push eax
call esi
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0xe8]
mov dword [ebp - method.NeatFileWindows.virtual_0], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4ce2d5
push eax
call esi
mov dword [ebp - 0xe8], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00408040
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4ce302
push eax
call esi
mov dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.00408040
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x4ce347
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce33d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 8
jb 0x4ce395
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce38b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], 7
cmp eax, 8
jb 0x4ce3ef
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x80]
mov edx, eax
cmp ecx, 0x1000
jb 0x4ce3e5
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x140], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4cee4d
mov eax, dword [ebp - 0x140]
push ecx
push eax
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0xbc]
cmp ecx, 8
jb 0x4ce42f
mov edx, dword [ebp - 0xd0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce425
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
xor al, al
jmp 0x4cdf83
xor edi, edi
mov dword [ebp - 0x138], edi
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x170], 0x30
test ecx, ecx
jg 0x4ce47c
jl 0x4ce45b
cmp eax, 0x3e800000
jae 0x4ce465
mov dword [ebp - 0x170], 0x10
test ecx, ecx
jg 0x4ce47c
jl 0x4ce472
cmp eax, 0x6400000
jae 0x4ce47c
mov dword [ebp - 0x170], 4
push 0xfa000
mov dword [ebp - 0x144], 0
call fcn.0051ebb5
add esp, 4
mov dword [ebp - 0x140], eax
test eax, eax
jne 0x4ce664
sub esp, 0x18
mov ecx, esp
push 0x32
push str.Merge_Error__Insufficient_Memory_for_Merge_Buffer.
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
push 2
mov ecx, esi
call fcn.004cf950
mov eax, dword [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4ce4e5
push eax
call esi
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0xe8]
mov dword [ebp - method.NeatFileWindows.virtual_0], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4ce507
push eax
call esi
mov dword [ebp - 0xe8], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00408040
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4ce534
push eax
call esi
mov dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.00408040
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x4ce579
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce56f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 8
jb 0x4ce5c7
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce5bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], 7
cmp eax, 8
jb 0x4ce621
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x80]
mov edx, eax
cmp ecx, 0x1000
jb 0x4ce617
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x140], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4cee4d
mov eax, dword [ebp - 0x140]
push ecx
push eax
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0xbc]
cmp ecx, 8
jb 0x4ce42f
mov edx, dword [ebp - 0xd0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce425
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cee4d
jmp 0x4ce425
mov eax, dword [ebp - 0x30]
lea ecx, [esi + 0x80]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x168], eax
cmp edi, 0xffffffff
je 0x4ced1f
lea eax, [esi + 0x80]
mov dword [ebp - 0x148], eax
lea ecx, [edi*4]
mov eax, dword [eax]
mov dword [ebp - 0x14c], ecx
mov edx, dword [eax + ecx]
cmp dword [edx + 0x50], 2
jne 0x4cec60
mov byte [ebp - 4], 0xf
cmp dword [esi + 0xa0], 1
jne 0x4ce6e7
lea eax, [ebp - 0x164]
mov ecx, edx
push eax
call fcn.004ca400
or dword [ebp - 0x130], 8
mov ecx, eax
call fcn.004102e0
mov byte [ebp - 0x131], 1
test al, al
je 0x4ce6ee
mov byte [ebp - 0x131], 0
mov eax, dword [ebp - 0x130]
test al, 8
je 0x4ce70c
and eax, 0xfffffff7
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x130], eax
call fcn.00408210
cmp byte [ebp - 0x131], 0
je 0x4ce8f1
mov ecx, dword [ebp - 0x138]
lea edi, [ebp - 0x17]
test ecx, ecx
jns 0x4ce770
neg ecx
mov dword [ebp - 0x138], ecx
nop
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
add cl, cl
sub byte [ebp - 0x138], cl
mov ecx, dword [ebp - 0x138]
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x138], ecx
test ecx, ecx
jne 0x4ce730
dec edi
mov byte [edi], 0x2d
jmp 0x4ce7a3
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
add cl, cl
sub byte [ebp - 0x138], cl
mov ecx, dword [ebp - 0x138]
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x138], ecx
test ecx, ecx
jne 0x4ce770
lea eax, [ebp - 0x17]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0xf
mov byte [ebp - 0x164], 0
cmp edi, eax
je 0x4ce7de
sub eax, edi
lea ecx, [ebp - 0x164]
push eax
push edi
call fcn.00402bc0
mov edi, dword [ebp - 0x130]
or edi, 0x3000
push 0x17
push str.Error_:_Segment_Number
push ecx
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x10
call fcn.0040b5e0
mov dword [ebp - 0x18c], 0
or edi, 0x4000
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x17c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x30], esp
lea ecx, [ebp - 0x18c]
push 0x2c
push str._is_Empty__Action:_Ignore_and_Continue_Merge
call fcn.00402cc0
mov ecx, eax
or edi, 0x8000
mov eax, dword [ebp - 0x30]
push 2
mov dword [ebp - 0x130], edi
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, esi
call fcn.004cf950
lea ecx, [ebp - 0x18c]
call fcn.004028f0
lea ecx, [ebp - 0x164]
call fcn.004028f0
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x14c]
mov eax, dword [ecx]
mov eax, dword [eax + edx]
mov edi, dword [eax + 0x4c]
mov dword [ebp - 0x138], edi
mov byte [ebp - 4], 0xe
jmp 0x4ce682
mov ecx, dword [ebp - 0x148]
lea eax, [ebp - 0x164]
mov edx, dword [ebp - 0x14c]
push eax
mov ecx, dword [ecx]
mov ecx, dword [ecx + edx]
call fcn.004ca400
push 2
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x12
call fcn.00408ec0
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xf
call fcn.00408210
push 0xfa000
push dword [ebp - 0x140]
lea ecx, [ebp - 0x108]
call fcn.00409100
mov edi, dword [ebp - 0x16c]
mov ecx, eax
cdq
add dword [ebp - 0x168], eax
adc edi, edx
mov dword [ebp - 0x16c], edi
test ecx, ecx
jle 0x4ceb43
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x4e0], 3
je 0x4cea7b
cmp byte [eax + 0x4c], 0
jne 0x4cea7b
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push ecx
push dword [ebp - 0x140]
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cee52
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x144]
adc dword [ebp - 0x8c], 0
inc eax
mov dword [ebp - 0x144], eax
cdq
idiv dword [ebp - 0x170]
cmp edx, 1
jne 0x4cea60
cmp dword [esi + 0xa0], 0
jne 0x4cea60
cmp byte [esi + 0x20], 0
jne 0x4cea60
push edi
push dword [ebp - 0x168]
lea ecx, [ebp - 0x18c]
call fcn.0040c0c0
add esp, 8
mov edi, eax
push 0xf
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 0x14
push eax
call fcn.004c3170
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x38], ecx
push edi
push eax
push dword [ebp - 0x13c]
call fcn.00409d30
mov ecx, dword [esi + 0x98]
or dword [ebp - 0x130], 0x40000
call fcn.004c2e90
lea ecx, [ebp - 0x164]
call fcn.004028f0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0xf
call fcn.004028f0
mov edi, dword [ebp - 0x16c]
push 0xfa000
push dword [ebp - 0x140]
lea ecx, [ebp - 0x108]
call fcn.00409100
jmp 0x4ce94b
mov eax, dword [ebp - 0xe8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4cea99
push eax
call esi
mov dword [ebp - 0xe8], 0xffffffff
mov eax, dword [ebp - 0x98]
cmp eax, 0xffffffff
je 0x4ceab1
push eax
call esi
mov dword [ebp - 0x98], 0xffffffff
push dword [ebp - 0x140]
call fcn.0051e914
add esp, 4
mov eax, dword [ebp - 0xe8]
mov dword [ebp - method.NeatFileWindows.virtual_0], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4ceae1
push eax
call esi
mov dword [ebp - 0xe8], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00408040
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4ceb0e
push eax
call esi
mov dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.00408040
lea ecx, [ebp - 0x50]
call fcn.00408210
lea ecx, [ebp - 0x68]
call fcn.00408210
lea ecx, [ebp - 0x80]
call fcn.00408210
lea ecx, [ebp - 0xd0]
call fcn.00408210
xor al, al
jmp 0x4cdf83
mov eax, dword [ebp - 0xe8]
cmp eax, 0xffffffff
je 0x4ceb5f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe8], 0xffffffff
cmp dword [esi + 0xa0], 1
jne 0x4cebd4
mov edx, dword [ebp - 0x138]
lea ecx, [ebp - 0x18c]
lea edx, [edx + 1]
call fcn.00409900
mov edi, eax
push 0xf
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 0x16
push eax
call fcn.004c3170
sub esp, 0x18
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x38], ecx
push edi
push eax
push dword [ebp - 0x13c]
call fcn.00409d30
mov ecx, dword [esi + 0x98]
or dword [ebp - 0x130], 0x80000
call fcn.004c2e90
lea ecx, [ebp - 0x164]
call fcn.004028f0
lea ecx, [ebp - 0x18c]
call fcn.004028f0
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 4], 0xe
mov edx, dword [ebp - 0x14c]
mov eax, dword [ecx]
mov eax, dword [edx + eax]
mov edi, dword [eax + 0x4c]
mov dword [ebp - 0x138], edi
jmp 0x4ce682
mov ecx, dword [edx + 0x40]
sub ecx, dword [edx + 0x30]
mov eax, dword [edx + 0x44]
sbb eax, dword [edx + 0x34]
push eax
push ecx
lea ecx, [ebp - 0x120]
call fcn.0040c0c0
mov esi, eax
mov edx, edi
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
call fcn.00409900
push eax
mov edx, str.Internal_Error._an_inComplete_segment_was_found_._SegmentIndex_
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x18c]
call fcn.0040b090
push str.and_segment__remainedBytes_
mov edx, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x164]
call fcn.0040ca30
sub esp, 8
mov byte [ebp - 4], 0x1c
mov ecx, esp
mov dword [ebp - 0x13c], ecx
push esi
push eax
push dword [ebp - 0x13c]
call fcn.00409d30
mov ecx, dword [ebp - 0x174]
push 2
call fcn.004cf950
lea ecx, [ebp - 0x164]
call fcn.004028f0
lea ecx, [ebp - 0x18c]
call fcn.004028f0
lea ecx, [ebp - 0x2c]
call fcn.004028f0
lea ecx, [ebp - 0x120]
call fcn.004028f0
push dword [ebp - 0x140]
call fcn.0051e914
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ceabf
mov eax, dword [ebp - 0x98]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4ced43
push eax
call edi
mov dword [ebp - 0x98], 0xffffffff
lea ecx, [esi + 0x80]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
lea ecx, [ebp - 0x2c]
sar eax, 2
movzx edx, ax
call fcn.00409900
push eax
mov edx, str.File_completely_Downloaded.__
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x120]
call fcn.0040b090
sub esp, 0x14
mov byte [ebp - 4], 0x1e
mov ecx, esp
mov edx, eax
push str.__Segments_
call fcn.0040ca30
add esp, 4
mov ecx, esi
push 1
call fcn.004cf950
lea ecx, [ebp - 0x120]
call fcn.004028f0
lea ecx, [ebp - 0x2c]
call fcn.004028f0
push dword [ebp - 0x140]
call fcn.0051e914
mov eax, dword [ebp - 0xe8]
add esp, 4
mov dword [ebp - method.NeatFileWindows.virtual_0], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4cedcf
push eax
call edi
mov dword [ebp - 0xe8], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00408040
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], vtable.NeatFileWindows.0
cmp eax, 0xffffffff
je 0x4cedfc
push eax
call edi
mov dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.00408040
lea ecx, [ebp - 0x50]
call fcn.00408210
lea ecx, [ebp - 0x68]
call fcn.00408210
lea ecx, [ebp - 0x80]
call fcn.00408210
lea ecx, [ebp - 0xd0]
call fcn.00408210
jmp 0x4cdf81
call fcn.00401640
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
push 0x2be
lea ecx, [ebp - 0x12c]
call fcn.004083f0
push str.NeatFileWindows
push 0x196
push str.File_Write_Failed
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x208]
call fcn.00407b80
push 0x574b4c
lea eax, [ebp - 0x208]
push eax
call fcn.0051907e
int3