Function at 0x1d37400
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x450
mov esi, ecx
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [ecx], 0x1d79dc4
lea eax, [ecx + 8]
mov dword [esp], eax
add ecx, 0xc
lea ebx, [esp + 0x2c]
mov dword [esp + 0xc], ecx
push ebx
call fcn.01cfcba0
lea eax, [esp + 0x20]
lea edi, [esp + 0x48]
mov ecx, edi
push eax
mov dword [esp + 8], ebx
push ebx
call fcn.01cfcc10
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1d3745d
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
jns 0x1d3746f
push dword [esp + 0x48]
call fcn.01cc3180
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, dword [esp]
lea edi, [esp + 0x48]
push edi
call fcn.01d04060
mov ecx, edi
push 0x1da1a14
call fcn.01d161d0
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
lea ecx, [esp + 0x48]
call fcn.01d05a90
movsx eax, bl
mov edi, dword [esp]
mov ecx, edi
push eax
call fcn.01cf0220
mov ecx, edi
call fcn.01cf00f0
xor edi, edi
dec edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x48]
push eax
call fcn.01cfcba0
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x4c]
push ebx
call fcn.01cfcc10
lea ecx, [esp + 0x20]
push ebx
push edi
push dword [esi + 0x90]
lea eax, [esp + 0x38]
push eax
call fcn.01cb88d0
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
test byte [0x1d920ac], 0x19
jne 0x1d37695
cmp byte [esp + 0x2b], 0
jns 0x1d3753d
push dword [esp + 0x20]
call fcn.01cc3180
add esp, 4
cmp dword [esi + 4], 3
je 0x1d3785d
mov ecx, dword [0x1da3244]
test ecx, ecx
je 0x1d3758b
mov eax, dword [esi + 4]
mov dword [esp], eax
mov ebx, dword [esi + 0x90]
mov eax, dword [esi + 0x98]
mov dword [esp + 0x14], eax
mov edi, dword [esi + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x1c]
push edi
push dword [esp + 0x10]
call ecx
add esp, 0x14
test al, al
jne 0x1d375fc
mov eax, dword [0x1d92fac]
test al, 2
jne 0x1d37672
test al, 4
jne 0x1d375a7
cmp eax, 1
ja 0x1d375ea
cmp dword [esi + 4], 2
jl 0x1d375ea
lea edx, [esp + 0x2c]
movzx ecx, byte [edx + 0xb]
mov ebx, ecx
and ebx, 0x7f
test cl, cl
cmovs ebx, dword [edx + 4]
cmovs edx, dword [edx]
mov dword [esp], edx
test ebx, ebx
je 0x1d375ea
xor edi, edi
mov eax, ebx
sub eax, edi
mov ecx, dword [esp]
add ecx, edi
push eax
push ecx
push 2
call fcn.01cd97f7
add esp, 0xc
test eax, eax
js 0x1d375e5
add edi, eax
cmp edi, ebx
jb 0x1d375c6
mov eax, dword [0x1d92fac]
test al, 1
jne 0x1d376d7
cmp dword [esi + 4], 3
je 0x1d3771c
cmp byte [esp + 0x37], 0
jns 0x1d3760f
push dword [esp + 0x2c]
call fcn.01cc3180
add esp, 4
lea ecx, [esi + 0x9c]
call fcn.01d4caa0
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x1d7a378
mov dword [esi + 0xc], 0x1d7a380
cmp byte [esi + 0x37], 0
jns 0x1d37640
push dword [esi + 0x2c]
call fcn.01cc3180
add esp, 4
add esi, 0x40
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.01ceff90
mov ecx, edi
call fcn.01cf00e0
mov ecx, esi
call fcn.01ceff80
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.01cc3f9d
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esp + 0x37], 0
jns 0x1d37681
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1d92fac]
jmp 0x1d37598
lea eax, [esp + 0x38]
lea edx, [esp + 0x48]
mov dword [edx], eax
lea eax, [esp + 0x3c]
mov dword [edx + 4], eax
lea eax, [esp + 0x20]
mov dword [edx + 8], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
sub esp, 8
movsd xmm0, qword [esp + 0x48]
movsd qword [esp], xmm0
mov ecx, str.LogMessage
call fcn.01d37cf0
add esp, 8
jmp 0x1d3752a
call fcn.01d36cd0
test al, al
je 0x1d375f2
lea eax, [esp + 0x2c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov dword [esp + 0x48], 0xffffffff
cmovs eax, dword [eax]
push 0
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push dword [0x1da3250]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1d375f2
mov edi, 0x400
push edi
push 0xff
lea eax, [esp + 0x50]
push eax
call fcn.01cc71b0
add esp, 0xc
cmp byte [esp + 0x37], 0
js 0x1d37741
lea eax, [esp + 0x2c]
jmp 0x1d37745
mov eax, dword [esp + 0x2c]
push edi
push eax
lea edi, [esp + 0x50]
push edi
call fcn.01d2e4d0
add esp, 0xc
push edi
call fcn.01cf00e0
add esp, 4
call fcn.01d36ff0
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x1d37911
mov dword [esp + 0x20], 0xffffffff
call fcn.01d36ff0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x1d37914
shl edx, 2
add edx, dword [eax]
lea edi, [esp + 0x20]
mov ecx, edi
push edx
call fcn.01d39680
cmp dword [edi], 0
jne 0x1d377b3
lea ecx, [esp + 0x20]
call fcn.01d396b0
jmp 0x1d375fc
cmp byte [esp + 0x37], 0
js 0x1d377c0
lea edi, [esp + 0x2c]
jmp 0x1d377c4
mov edi, dword [esp + 0x2c]
mov ebx, edi
add ebx, dword [esp + 8]
je 0x1d378f3
push ebx
call fcn.01cdce40
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 8]
sub edx, eax
add edi, eax
lea ecx, [esp + 0x18]
push edx
push edi
call fcn.01cf1490
lea ecx, [esp + 0x20]
push dword [esp]
push ebx
lea eax, [esp + 0x20]
push dword [eax + 4]
push dword [eax]
mov eax, dword [esp + 0x20]
push dword [eax + 0x98]
push dword [eax + 0x94]
call fcn.01d37920
jmp 0x1d377a5
push 0x1da3274
call fcn.01cc31f7
add esp, 4
cmp dword [0x1da3274], 0xffffffff
jne 0x1d3788e
push 0x400
push str.LOG_FATAL
call fcn.01d461f0
add esp, 8
mov dword [0x1da3270], eax
push 0x1da3274
call fcn.01cc326d
add esp, 4
jmp 0x1d3788e
cmp byte [0x1da326c], 0
jne 0x1d37547
mov byte [0x1da326c], 1
mov eax, dword [0x1da3274]
mov ecx, dword [0x1d93658]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1d37821
mov ecx, esi
lea eax, [esp + 0x48]
push eax
call fcn.01d379b0
movzx eax, byte [esp + 0x53]
test al, al
js 0x1d378ac
and eax, 0x7f
lea edx, [esp + 0x48]
jmp 0x1d378b4
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea edi, [esp + 0x20]
mov ecx, edi
push eax
push edx
call fcn.01cf1490
push dword [edi + 4]
push dword [edi]
push dword [0x1da3270]
call fcn.01d46210
add esp, 0xc
cmp byte [esp + 0x53], 0
jns 0x1d378e7
push dword [esp + 0x48]
call fcn.01cc3180
add esp, 4
mov byte [0x1da326c], 0
jmp 0x1d37547
push str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
push str.__s___nullptr
push 0x109
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01cfd380
int3
int3