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

Disassembly:
push 0xffffffffffffffff
push 0x101afd66
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 0x100c55d0
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 0x258]
or ecx, eax
je 0x100c55d0
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 0x100c51fa
mov eax, dword [esi + 8]
cmp eax, ebp
jbe 0x100c51fa
mov edx, ecx
mov edi, eax
mov eax, dword [edx]
cmp eax, ebp
je 0x100c51f4
mov eax, dword [eax]
cmp eax, ebp
jne 0x100c51ee
add edx, 4
dec edi
jne 0x100c51e8
push ecx
call fcn.10197127
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.101956c5
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.100c5930
lea ecx, [esp + 0x40]
call fcn.100cc000
lea ecx, [esp + 0x10]
mov dword [esp + 0x254], ebp
call fcn.1017d600
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 0x100c5562
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 0x100c5537
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100c5537
cmp dword [esp + 0x24], 1
jne 0x100c5559
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100c5559
shl eax, 4
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call fcn.1017d810
lea edx, [esp + 0x18]
push ebx
push edx
lea ecx, [esp + 0x18]
call fcn.1017d800
push eax
lea ecx, [esp + 0x1c]
call fcn.1017df20
push eax
push edi
call ebp
test eax, eax
je 0x100c5353
lea ecx, [esp + 0x10]
call fcn.1017d800
cmp dword [esp + 0x18], eax
jae 0x100c5375
mov eax, dword [0x102acd68]
test eax, eax
je 0x100c5375
push str.CDingTalkMsgHashMgr::LoadFile_Data_Err
push str.Dingtalk
push 8
push 0x102ac4d4
call fcn.10141bb0
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.1017d800
push eax
lea ecx, [esp + 0x14]
call fcn.1017df00
push eax
push 0
call fcn.10146a60
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp ecx, eax
jne 0x100c5501
fld qword [esp + 0x2c]
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x10]
fstp qword [eax]
call fcn.1017df20
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x100c54fa
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 0x100c5414
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x100c5410
mov edx, dword [ebx]
mov edi, dword [ebx + 4]
mov ebp, dword [eax + 8]
cmp ebp, edx
jne 0x100c5400
mov ebp, dword [eax + 0xc]
cmp ebp, edi
je 0x100c5408
mov eax, dword [eax]
test eax, eax
je 0x100c5410
jmp 0x100c53f2
test eax, eax
jne 0x100c54c3
test ecx, ecx
jne 0x100c5446
mov ecx, dword [esp + 0x20]
lea ebp, [ecx*4]
push ebp
call fcn.101970fe
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 0x100c547c
mov ecx, dword [esi + 0x18]
push 0x20
lea eax, [esi + 0x14]
push ecx
push eax
call fcn.101956a5
mov ecx, dword [esi + 0x18]
mov edx, ecx
shl edx, 5
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0x1c]
jl 0x100c547c
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x20
dec ecx
jne 0x100c546e
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.100c5af0
lea ecx, [edi + 0x10]
push 1
push ecx
call fcn.100c5b20
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 0x100c53cb
mov ebx, 1
jmp 0x100c5559
mov eax, dword [0x102acd68]
test eax, eax
je 0x100c5523
push str.CDingTalkMsgHashMgr::LoadFile_CRC_Err
push str.Dingtalk
push 8
push 0x102ac4d4
call fcn.10141bb0
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 0x100c5560
mov eax, dword [0x102acd68]
test eax, eax
je 0x100c5559
push str.CDingTalkMsgHashMgr::LoadFile_Head_Err
push str.Dingtalk
push 8
push 0x102ac4d4
call fcn.10141bb0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
cmp dword [0x102acd68], ebp
je 0x100c558e
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.10141bb0
add esp, 0x1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 0
call fcn.1017d760
lea ecx, [esp + 0x40]
mov dword [esp + 0x254], 0xffffffff
call fcn.100cc020
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