Function at 0x1001724e
Capabilities:
Get file size

Disassembly:
mov eax, 0x10134bc7
call fcn.1007db34
sub esp, 0x94
push ebx
push esi
mov ebx, ecx
push edi
push 4
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x2c], ebx
call fcn.1005eb25
push 1
xor esi, esi
pop edi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], edi
call fcn.10015bc9
lea eax, [ebx + 4]
push edi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], esi
call fcn.100a1760
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x3c], esi
call fcn.10017190
test eax, eax
je 0x10017798
cmp dword [ebp - 0x3c], 2
mov dword [ebp - 0x28], esi
jne 0x1001759d
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx + 0x18]
mov ecx, eax
add ebx, 0x18
imul ecx, ecx, 0x4c
add ecx, edx
cmp dword [ecx], esi
jne 0x1001739f
mov edx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x3c]
lea edx, [edx + edx*2]
cmp dword [ecx + edx*4 + 8], esi
je 0x1001739f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
imul eax, eax, 0x4c
push dword [eax + ecx + 0x1c]
push dword [eax + ecx + 0x18]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.1007430c
add esp, 0x10
test eax, eax
jg 0x10017357
mov edi, dword [ebp - 0x10]
push esi
imul edi, edi, 0x4c
push dword [ebp + 0xc]
add edi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [edi + 0x14]
je 0x1001739c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
imul eax, eax, 0x4c
push 1
pop edi
mov dword [eax + ecx], edi
cmp dword [0x101b04b8], esi
je 0x1001739c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
imul eax, eax, 0x4c
push dword [eax + ecx + 0x20]
mov ecx, 0x101ad158
push 0x773
call fcn.100aa1c0
push eax
push str.__s__OnNtClose_LINE:_d_:__s_is_modified_
push str.SafeDoc
push edi
call fcn.1007bb15
add esp, 0x18
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x4c
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [eax + edx + 0x3c]
lea ecx, [ecx + ecx*2]
mov edi, dword [esi + 0x1c]
mov eax, dword [eax + ecx*4 + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.1005e85a
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x10017420
mov ecx, dword [esi + 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
push esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
call eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
jmp 0x10017450
mov edi, dword [esi + 0x18]
test edi, edi
je 0x10017450
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
call edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [esi + 0xa], 0x80
mov dword [esi + 0x10], eax
je 0x10017450
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x100177fc
mov eax, dword [ebp - 0x10]
mov edi, dword [ebx]
mov edx, eax
mov ecx, dword [ebp - 0x18]
imul edx, edx, 0x4c
lea ecx, [ecx + ecx*2]
mov edx, dword [edx + edi + 0x3c]
lea ecx, [edx + ecx*4]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 4], edx
jne 0x10017583
cmp dword [ecx], 0xffffffff
je 0x10017583
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp + 8]
xor edi, edi
push ecx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x14], edi
call fcn.1005e85a
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp eax, edi
je 0x10017502
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
imul ecx, ecx, 0x4c
mov dword [esi + 0x24], eax
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov edi, dword [esi + 0xc]
mov ecx, dword [ecx + edx + 0x3c]
lea eax, [eax + eax*2]
push dword [ecx + eax*4]
push esi
call dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x24], eax
jmp 0x10017544
mov edi, dword [esi + 0x18]
test edi, edi
je 0x10017544
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx]
imul ecx, ecx, 0x4c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx + edx + 0x3c]
lea eax, [eax + eax*2]
push dword [ecx + eax*4]
call edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [esi + 0xa], 0x80
mov dword [esi + 0x10], eax
je 0x10017544
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
mov esi, dword [esi + 0x14]
test esi, esi
je 0x10017580
cmp dword [0x101b04b8], 0
je 0x10017580
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
imul eax, eax, 0x4c
push esi
push dword [eax + ecx + 0x20]
mov ecx, 0x101ad158
call fcn.100aa1c0
push eax
push str.__s__CSafeDoc2::OnNtClose__s_:_NtClose___failed_status__0x_08X_..._n
push str.SafeDoc
push 4
call fcn.1007bb15
add esp, 0x18
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x4c
mov ecx, dword [ebx]
push 1
push dword [ebp - 0x18]
lea ecx, [eax + ecx + 0x3c]
call fcn.1002332e
xor edi, edi
jmp 0x1001768c
cmp dword [ebp - 0x3c], edi
jne 0x100179ea
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebx + 0x20]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.1005e85a
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, esi
je 0x1001760f
mov ecx, dword [ebx + 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp - 0x30]
push ebx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
call eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0xc], eax
jmp 0x1001763f
mov edi, dword [ebx + 0x18]
cmp edi, esi
je 0x1001763f
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
call edi
mov dword [ebx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebx + 0xa], 0x80
mov dword [ebx + 0x10], eax
je 0x1001763f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x14]
cmp eax, esi
jne 0x100177fc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
imul ecx, ecx, 0x4c
mov edx, dword [eax + 0x18]
lea ebx, [eax + 0x18]
mov eax, dword [ebp - 0x18]
xor edi, edi
mov ecx, dword [ecx + edx + 0x2c]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4], edi
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x4c
mov ecx, dword [ebx]
mov esi, dword [eax + ecx + 0x2c]
lea ecx, [eax + ecx + 0x2c]
mov eax, dword [ebp - 0x18]
lea edx, [eax + eax*4]
cmp dword [esi + edx*4 + 8], edi
jne 0x1001768c
push 1
push eax
call fcn.1002327e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
imul eax, eax, 0x4c
add eax, ecx
cmp dword [eax + 0x30], edi
jne 0x100176a5
cmp dword [eax + 0x40], edi
jne 0x100176a5
push 1
pop ecx
jmp 0x100176a7
xor ecx, ecx
cmp dword [eax], edi
je 0x10017803
cmp ecx, edi
jne 0x100176e7
mov ecx, dword [eax + 0x24]
cmp dword [ecx - 8], edi
je 0x10017836
cmp dword [ebp - 0x28], edi
je 0x10017836
mov edx, dword [eax + 0x40]
xor esi, esi
cmp edx, edi
jle 0x100176e7
mov ecx, dword [eax + 0x3c]
add ecx, 8
cmp dword [ecx], edi
jne 0x10017836
inc esi
add ecx, 0xc
cmp esi, edx
jl 0x100176d7
mov ecx, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.100231ae
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
imul eax, eax, 0x4c
mov byte [ebp - 4], 1
mov dword [eax + ecx], edi
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x4c
mov ecx, dword [ebx]
mov dword [eax + ecx + 0xc], 1
lea ecx, [ebp - 0x4c]
call fcn.100a17c0
push 0xfffffffffffffffb
lea ecx, [ebp - 0x24]
call fcn.1005eb25
mov esi, dword [ebp - 0x2c]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp + 8], edi
call fcn.10017aba
mov dword [ebp - 0x40], eax
lea eax, [esi + 4]
push 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.100a1760
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov byte [ebp - 4], 4
cmp dword [eax + 0x1c], edi
jle 0x10017974
mov dword [ebp + 0xc], edi
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x80]
mov eax, dword [ecx + eax + 0x20]
push eax
call fcn.1007eb9e
pop ecx
test eax, eax
pop ecx
je 0x10017881
mov eax, dword [ebp - 0x2c]
add dword [ebp + 0xc], 0x4c
inc esi
cmp esi, dword [eax + 0x1c]
jl 0x1001776a
jmp 0x10017974
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.1005e85a
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, esi
je 0x10017a4d
mov ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
push edi
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
call eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x1c]
jmp 0x10017a45
mov edi, eax
jmp 0x10017a80
cmp ecx, edi
je 0x10017870
cmp dword [eax + 0xc], edi
je 0x10017847
cmp dword [0x101b04b8], edi
je 0x10017836
push dword [eax + 0x20]
mov ecx, 0x101ad158
call fcn.100aa1c0
push eax
push str.__s__CSafeDoc::OnNtClose_Delete_File__s__Failed__Merging_
push 0x10173ec4
push 4
call fcn.1007bb15
add esp, 0x14
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.100a17c0
jmp 0x100179c8
mov ecx, dword [eax + 0x24]
push 1
cmp dword [ecx - 8], edi
je 0x10017866
mov ecx, dword [ebp - 0x2c]
pop esi
push eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x38], esi
call fcn.100231ae
push esi
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.10023436
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.100a17c0
jmp 0x1001798c
cmp esi, 0xffffffff
je 0x10017974
cmp dword [ebp + 8], edi
je 0x100178a2
mov eax, esi
mov ecx, dword [ebx]
imul eax, eax, 0x4c
add eax, ecx
cmp dword [eax + 0x40], edi
jne 0x100178a2
cmp dword [eax + 0x30], edi
je 0x100178c8
cmp dword [ebp - 0x40], edi
je 0x1001792e
mov ecx, dword [ebp - 0xa0]
cmp ecx, edi
jne 0x100178dc
mov eax, esi
mov edx, dword [ebx]
imul eax, eax, 0x4c
add eax, edx
cmp dword [eax + 0x40], edi
jne 0x100178dc
cmp dword [eax + 0x30], edi
jne 0x100178dc
push 1
mov ecx, ebx
pop eax
push eax
push esi
mov dword [ebp - 0x38], eax
call fcn.10023436
jmp 0x10017974
mov eax, esi
mov edx, dword [ebx]
imul eax, eax, 0x4c
mov dword [eax + edx], ecx
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x9c]
mov dword [eax + ecx + 4], edx
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x98]
mov dword [eax + ecx + 8], edx
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x90]
mov dword [eax + ecx + 0x10], edx
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x8c]
mov dword [eax + ecx + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x88]
mov dword [eax + ecx + 0x18], edx
mov edx, dword [ebp - 0x84]
mov dword [eax + ecx + 0x1c], edx
jmp 0x1001796e
cmp dword [0x101b04b8], edi
je 0x10017960
mov eax, esi
mov ecx, dword [ebx]
imul eax, eax, 0x4c
push dword [eax + ecx + 0x20]
mov ecx, 0x101ad158
call fcn.100aa1c0
push eax
push str.__s__CSafeDoc::OnNtClose__s_:_Merge_Failed__n
push str.SafeDoc
push 4
call fcn.1007bb15
add esp, 0x14
mov eax, esi
mov ecx, dword [ebx]
imul eax, eax, 0x4c
mov dword [eax + ecx], 1
mov ecx, dword [ebx]
mov dword [eax + ecx + 0xc], edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.100a17c0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1005eb48
cmp dword [ebp - 0x38], edi
je 0x100179c8
push 0xfffffffffffffffb
lea ecx, [ebp - 0x24]
call fcn.1005eb25
xor eax, eax
cmp dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
sete al
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
call fcn.100180ce
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1005eb48
and byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.10015d13
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1005eb48
xor eax, eax
jmp 0x10017aa9
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.1005e85a
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, esi
je 0x10017a4d
mov ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
push edi
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
call eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x24], eax
mov dword [edi + 0xc], esi
jmp 0x10017a7d
mov ebx, dword [edi + 0x18]
cmp ebx, esi
je 0x10017a7d
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
call ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [edi + 0xa], 0x80
mov dword [edi + 0x10], eax
je 0x10017a7d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x28], eax
mov edi, dword [edi + 0x14]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.100a17c0
and byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.10015d13
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1005eb48
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8