Function at 0x100c5050
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101af026
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [esp + 0x24c]
mov dword [esp + 4], ecx
or eax, dword [esp + 0x250]
je 0x100c54a0
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 0x258]
or ecx, eax
je 0x100c54a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x26c]
xor ebp, ebp
push edi
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x100c50ca
mov eax, dword [esi + 8]
cmp eax, ebp
jbe 0x100c50ca
mov edx, ecx
mov edi, eax
mov eax, dword [edx]
cmp eax, ebp
je 0x100c50c4
mov eax, dword [eax]
cmp eax, ebp
jne 0x100c50be
add edx, 4
dec edi
jne 0x100c50b8
push ecx
call fcn.101963e7
mov ecx, dword [esi + 0x14]
add esp, 4
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call fcn.10194985
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x264]
lea edx, [esp + 0x44]
stosw word es:[edi], ax
mov eax, dword [esp + 0x268]
push 0x104
push edx
mov edx, dword [esp + 0x268]
push eax
mov eax, dword [esp + 0x268]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov dword [esi + 0x14], ebp
xor ebx, ebx
call fcn.100c5800
lea ecx, [esp + 0x40]
call fcn.100cbed0
lea ecx, [esp + 0x10]
mov dword [esp + 0x254], ebp
call fcn.1017c8c0
xor ecx, ecx
mov byte [esp + 0x254], 1
mov dword [esp + 0x28], ecx
push ebp
mov dword [esp + 0x30], ecx
push 0x80
push 3
mov dword [esp + 0x3c], ecx
push ebp
push 7
lea edx, [esp + 0x58]
mov dword [esp + 0x48], ecx
push SysReAllocString
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x100c5432
push ebp
push ebp
push ebp
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x2c]
push 0x18
push ecx
push edi
call ebp
test eax, eax
je 0x100c5407
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100c5407
cmp dword [esp + 0x24], 1
jne 0x100c5429
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100c5429
shl eax, 4
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call fcn.1017cad0
lea edx, [esp + 0x18]
push ebx
push edx
lea ecx, [esp + 0x18]
call fcn.1017cac0
push eax
lea ecx, [esp + 0x1c]
call fcn.1017d1e0
push eax
push edi
call ebp
test eax, eax
je 0x100c5223
lea ecx, [esp + 0x10]
call fcn.1017cac0
cmp dword [esp + 0x18], eax
jae 0x100c5245
mov eax, dword [0x102acd68]
test eax, eax
je 0x100c5245
push str.CDingTalkMsgHashMgr::LoadFile_Data_Err
push str.Dingtalk
push 8
push 0x102ac4d4
call fcn.10140e70
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.1017cac0
push eax
lea ecx, [esp + 0x14]
call fcn.1017d1c0
push eax
push 0
call fcn.10145d20
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp ecx, eax
jne 0x100c53d1
fld qword [esp + 0x2c]
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x10]
fstp qword [eax]
call fcn.1017d1e0
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x100c53ca
mov eax, dword [ebx]
mov ecx, dword [esi + 8]
shr eax, 4
xor edx, edx
mov dword [esp + 0x20], ecx
div ecx
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x3c], edx
je 0x100c52e4
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x100c52e0
mov edx, dword [ebx]
mov edi, dword [ebx + 4]
mov ebp, dword [eax + 8]
cmp ebp, edx
jne 0x100c52d0
mov ebp, dword [eax + 0xc]
cmp ebp, edi
je 0x100c52d8
mov eax, dword [eax]
test eax, eax
je 0x100c52e0
jmp 0x100c52c2
test eax, eax
jne 0x100c5393
test ecx, ecx
jne 0x100c5316
mov ecx, dword [esp + 0x20]
lea ebp, [ecx*4]
push ebp
call fcn.101963be
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x100c534c
mov ecx, dword [esi + 0x18]
push 0x20
lea eax, [esi + 0x14]
push ecx
push eax
call fcn.10194965
mov ecx, dword [esi + 0x18]
mov edx, ecx
shl edx, 5
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0x1c]
jl 0x100c534c
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x20
dec ecx
jne 0x100c533e
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
inc ecx
push 1
mov eax, dword [edi]
lea ebp, [edi + 8]
push ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
call fcn.100c59c0
lea ecx, [edi + 0x10]
push 1
push ecx
call fcn.100c59f0
mov ecx, dword [esp + 0x3c]
mov eax, edi
mov dword [edi + 4], ecx
mov edx, dword [ebx]
mov dword [ebp], edx
mov edx, dword [ebx + 4]
mov dword [ebp + 4], edx
mov edx, dword [esi + 4]
mov edx, dword [edx + ecx*4]
mov dword [edi], edx
mov edx, dword [esi + 4]
mov dword [edx + ecx*4], edi
mov ecx, ebx
add eax, 0x10
mov edi, dword [esp + 0x1c]
add ebx, 0x10
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x100c529b
mov ebx, 1
jmp 0x100c5429
mov eax, dword [0x102acd68]
test eax, eax
je 0x100c53f3
push str.CDingTalkMsgHashMgr::LoadFile_CRC_Err
push str.Dingtalk
push 8
push 0x102ac4d4
call fcn.10140e70
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100c5430
mov eax, dword [0x102acd68]
test eax, eax
je 0x100c5429
push str.CDingTalkMsgHashMgr::LoadFile_Head_Err
push str.Dingtalk
push 8
push 0x102ac4d4
call fcn.10140e70
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
cmp dword [0x102acd68], ebp
je 0x100c545e
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
push ecx
push ebx
push str.CDingTalkMsgHashMgr::LoadFile___d___s___lu_
push str.Dingtalk
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 0
call fcn.1017ca20
lea ecx, [esp + 0x40]
mov dword [esp + 0x254], 0xffffffff
call fcn.100cbef0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
add esp, 0x248
ret 0x18
mov ecx, dword [esp + 0x23c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x248
ret 0x18