Function at 0x11d93790
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x11e4b918]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], edi
je 0x11d937db
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
push ebp
mov eax, dword [ebx + 4]
push esi
push eax
push str.CHealthCheckLogMgr::WriteLogsInner_dwLogsNum__d__dwStart__d__dwEnd__d_
push str.CHealthCheckLogMgr
push 0xffffffffffffffff
push 0x11e4b084
call fcn.11dc80a0
add esp, 0x1c
jmp 0x11d937e7
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov eax, dword [ebx + 4]
cmp esi, eax
jae 0x11d939dd
cmp ebp, eax
jae 0x11d939dd
cmp esi, ebp
ja 0x11d939dd
lea eax, [ebp + 1]
xor edx, edx
cmp esi, eax
jae 0x11d939bf
mov ecx, dword [ebx]
sub eax, esi
lea ecx, [ecx + esi*4]
jmp 0x11d9381c
mov edx, dword [esp + 0x18]
mov edi, dword [ecx]
add ecx, 4
dec eax
mov edi, dword [edi - 8]
lea edx, [edx + edi*2 + 8]
mov dword [esp + 0x18], edx
jne 0x11d93818
mov edi, edx
test edi, edi
je 0x11d939bf
push edi
call fcn.11db0150
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x11d939c9
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x14], esi
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x11d9386e
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
shl eax, 2
add ecx, eax
push 0
mov edx, dword [ecx]
mov ebx, dword [edx - 8]
shl ebx, 1
call fcn.11d9c830
mov ecx, ebx
mov esi, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x14]
mov ecx, eax
and ecx, 3
push 0xffffffffffffffff
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
lea eax, [edx*4]
mov ecx, dword [ecx]
add ecx, eax
call fcn.11d9c900
mov ecx, dword [str._r_n_r_n]
add ebp, ebx
mov eax, ebp
add ebp, 8
mov dword [eax], ecx
mov edx, dword [0x11e3ca2c]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x14]
inc eax
inc ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x11d9386a
mov esi, dword [esp + 0x28]
push 2
push 0
push 0
mov edx, dword [esi + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x64]
lea eax, [esp + 0x24]
push 0
push eax
push edi
push ecx
push edx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x11d939d3
cmp edi, dword [esp + 0x24]
jne 0x11d939d3
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esi + 0x68]
mov edx, dword [esp + 0x34]
sub ecx, edx
mov edx, dword [esp + 0x38]
lea eax, [ecx + edx + 1]
xor edx, edx
div dword [esi + 8]
mov dword [esi + 0x68], edx
mov eax, dword [0x11e4b918]
test eax, eax
je 0x11d9396e
push edx
push str.CHealthCheckLogMgr::WriteLogsInner_after_write_m_dwCurLogsNum__d_
push str.CHealthCheckLogMgr
push 0xffffffffffffffff
push 0x11e4b084
call fcn.11dc80a0
add esp, 0x14
mov dword [esp + 0x20], 1
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x11d93987
push ebp
call fcn.11db015e
add esp, 4
mov eax, dword [0x11e4b918]
test eax, eax
je 0x11d93a0b
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push eax
push esi
push str.CHealthCheckLogMgr::WriteLogsInner_bRet__d__dwDebug__d_
push str.CHealthCheckLogMgr
push 0xffffffffffffffff
push 0x11e4b084
call fcn.11dc80a0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov dword [esp + 0x10], 2
jmp 0x11d93987
mov dword [esp + 0x10], 3
jmp 0x11d9397a
mov dword [esp + 0x10], 4
jmp 0x11d93976
cmp dword [0x11e4b918], edi
je 0x11d939fe
push str.CHealthCheckLogMgr::WriteLogsInner_error_param
push str.CHealthCheckLogMgr
push 0xffffffffffffffff
push 0x11e4b084
call fcn.11dc80a0
add esp, 0x10
mov dword [esp + 0x10], 1
jmp 0x11d93987
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc