Function at 0x100377d0
Capabilities:
Print debug messages
Terminate process
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008ea93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x100ba4f0]
xor eax, esp
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x48], eax
push esi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov ecx, dword [0x100c50c0]
xor ebx, ebx
cmp eax, ecx
mov dword [esp + 0x58], ebx
jl 0x10037a36
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, ebx
lea esi, [ebp + 8]
push edi
jne 0x10037824
xor edi, edi
jmp 0x1003782b
mov edx, dword [esi + 0x14]
sub eax, dword [edx]
mov edi, eax
push 1
mov ecx, esi
call fcn.100578e8
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.10007f20
push 2
push 0x10095798
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 1
call fcn.1000a8b0
cmp dword [0x100c50c8], ebx
je 0x10037887
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x10037880
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x100c50c8], 1
je 0x1003793e
call fcn.10036f20
test al, al
je 0x1003793e
cmp dword [0x100c50c4], ebx
jne 0x100378bf
call fcn.10037530
mov ecx, dword [0x100c51e4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100378e4
cmp byte [0x100c51e0], bl
jne 0x100378d9
push 0x100c50a8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x100c51e0], 1
push 0x100c50a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x100c51d4]
push 2
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x10037904
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [0x100c51d4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x100c50c4], ebx
jne 0x10037933
mov ecx, dword [0x100c51e4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1003793e
push 0x100c50a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp], 3
jne 0x10037a09
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1003795d
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x10037a09
cmp dword [0x100c51dc], ebx
je 0x100379b1
mov edx, dword [esi + 0x24]
mov eax, dword [edx]
cmp eax, ebx
jne 0x10037972
xor edi, edi
jmp 0x10037979
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
mov edi, eax
push 1
mov ecx, esi
call fcn.100578e8
mov edx, dword [esi + 0x20]
mov eax, dword [edx]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.10019f30
push eax
mov byte [esp + 0x60], 2
call dword [0x100c51dc]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 1
call fcn.10006d10
jmp 0x10037a09
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, ebx
jne 0x100379be
xor edi, edi
jmp 0x100379c5
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
mov edi, eax
push 1
mov ecx, esi
call fcn.100578e8
mov edx, dword [esi + 0x20]
mov eax, dword [edx]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.10019f30
push eax
mov byte [esp + 0x60], 3
call fcn.10037020
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 1
call fcn.10006d10
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
mov ecx, esi
call fcn.100578e8
cmp dword [esp + 0x4c], 0x10
pop edi
jb 0x10037a26
mov eax, dword [esp + 0x34]
push eax
call fcn.100788bb
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea esi, [ebp + 0x5c]
mov ecx, esi
mov dword [esp + 0x58], 0xffffffff
call fcn.10057e8c
mov ecx, esi
mov dword [esi], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.10057174
mov ecx, dword [esp + 0x50]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x44]
pop ebx
xor ecx, esp
call fcn.10043e9e
add esp, 0x50
ret