Function at 0x1c7a1a0
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, 0x440
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x438], eax
mov dword [ecx], 0x1ce4364
lea edi, [ecx + 8]
mov dword [esp], ecx
add ecx, 0xc
lea esi, [esp + 0x38]
mov dword [esp + 8], ecx
push esi
call fcn.01c31e60
movzx ebx, byte [esp + 0x43]
test bl, bl
jns 0x1c7a1f3
mov ebx, dword [esp + 0x3c]
push dword [esp + 0x38]
call fcn.01cafb00
add esp, 4
mov dword [esp + 0xc], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
push esi
call fcn.01c3b6da
mov ecx, esi
push 0x1cfc268
call fcn.01c4eca8
mov dword [esp + 4], edi
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 0xa
call esi
mov ebx, eax
lea ecx, [esp + 0x38]
call fcn.01c3d5fe
movsx eax, bl
mov esi, dword [esp + 4]
mov ecx, esi
push eax
call fcn.01c314e0
mov ecx, esi
call fcn.01c30920
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
lea eax, [esp + 0x18]
mov edi, dword [esp + 8]
mov ecx, edi
mov dword [esp + 4], eax
push eax
call fcn.01c31e60
test byte [0x1cf92e8], 0x19
mov esi, dword [esp]
jne 0x1c7a6b4
cmp dword [esi + 4], 3
jne 0x1c7a373
cmp byte [0x1d0065c], 0
jne 0x1c7a373
mov byte [0x1d0065c], 1
mov eax, dword [0x1d00664]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c7a6fe
mov ecx, edi
lea ebx, [esp + 0x38]
push ebx
call fcn.01c31e60
cmp byte [esp + 0x43], 0
jns 0x1c7a2dc
mov ebx, dword [esp + 0x38]
add ebx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
mov esi, dword [esi + 0x98]
test edi, edi
je 0x1c7a307
push 0x5c
push edi
call fcn.01cb35c0
add esp, 8
lea ecx, [eax + 1]
test eax, eax
cmove ecx, edi
jmp 0x1c7a309
xor ecx, ecx
lea edi, [esp + 0x24]
push ebx
push esi
push ecx
push str._s:_d:__s
push edi
call fcn.01c7c1a0
add esp, 0x14
cmp byte [esp + 0x43], 0
jns 0x1c7a331
push dword [esp + 0x38]
call fcn.01cafb00
add esp, 4
movzx eax, byte [esp + 0x2f]
test al, al
mov esi, dword [esp]
jns 0x1c7a345
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push edi
push dword [0x1d00660]
call fcn.01c801e0
add esp, 0xc
cmp byte [esp + 0x2f], 0
jns 0x1c7a368
push dword [esp + 0x24]
call fcn.01cafb00
add esp, 4
mov byte [0x1d0065c], 0
mov edi, dword [esp + 8]
mov ecx, dword [0x1d00634]
test ecx, ecx
je 0x1c7a3c0
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
mov edi, dword [esi + 0x90]
mov ebx, dword [esi + 0x98]
mov eax, dword [esp]
mov esi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x18]
push eax
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push dword [esp + 0x20]
call ecx
add esp, 0x14
test al, al
jne 0x1c7a642
mov eax, dword [0x1cf9f7c]
test al, 2
je 0x1c7a3e7
cmp byte [esp + 0x23], 0
jns 0x1c7a3d8
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1cf9f7c]
test al, 4
jne 0x1c7a3f6
cmp dword [esi + 4], 2
jl 0x1c7a446
cmp eax, 1
ja 0x1c7a446
movzx ebx, byte [esp + 0x23]
test bl, bl
cmovs ebx, dword [esp + 0x1c]
lea esi, [esp + 0x18]
cmovs esi, dword [esp + 0x18]
test ebx, ebx
je 0x1c7a446
xor edi, edi
nop word cs:[eax + eax]
mov eax, ebx
sub eax, edi
lea ecx, [esi + edi]
push eax
push ecx
push 2
call fcn.01cc5b93
add esp, 0xc
test eax, eax
js 0x1c7a43d
add edi, eax
cmp edi, ebx
jb 0x1c7a420
mov eax, dword [0x1cf9f7c]
mov edi, dword [esp + 8]
test al, 1
je 0x1c7a485
call fcn.01c79a70
test al, al
je 0x1c7a485
mov dword [esp + 0x38], 0xffffffff
movzx eax, byte [esp + 0x23]
test al, al
cmovs eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmovs ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push dword [0x1d00640]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp]
cmp dword [esi + 4], 3
jne 0x1c7a642
mov ecx, dword [0x1cfdab0]
test ecx, ecx
lea esi, [esp + 0x38]
je 0x1c7a4be
movzx eax, byte [esp + 0x23]
test al, al
jns 0x1c7a4b3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x1c7a4b7
lea edx, [esp + 0x18]
push eax
push edx
call fcn.01c67570
push 0x400
push 0xff
push esi
call fcn.01cb3330
add esp, 0xc
cmp byte [esp + 0x23], 0
jns 0x1c7a4de
mov eax, dword [esp + 0x18]
jmp 0x1c7a4e2
lea eax, [esp + 0x18]
push 0x400
push eax
push esi
call fcn.01c65960
add esp, 0xc
push esi
call fcn.01c30910
add esp, 4
mov eax, dword [0x1d00658]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c7a741
mov eax, dword [0x1d00650]
cmp eax, dword [0x1d00654]
je 0x1c7a7ad
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [0x1d00658]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c7a777
mov eax, dword [0x1d00654]
test eax, eax
mov ecx, dword [0x1d0064c]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x1c7a7b0
shl eax, 2
add eax, dword [0x1d00648]
lea ecx, [esp + 0x14]
push eax
call fcn.01c7ec70
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1c7a636
cmp byte [esp + 0x23], 0
mov dword [esp + 4], eax
jns 0x1c7a59e
mov edi, dword [esp + 0x18]
jmp 0x1c7a5a2
lea edi, [esp + 0x18]
mov ebx, edi
mov esi, dword [esp + 0xc]
add ebx, esi
je 0x1c7a7b3
push ebx
call fcn.01cc8bc0
add esp, 4
mov edx, dword [esp]
mov ecx, dword [edx + 0x90]
sub esi, ecx
add edi, ecx
mov ecx, dword [edx + 0x94]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 0x98]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov eax, 1
mov esi, dword [esp + 4]
lock xadd dword [esi], eax
test eax, eax
jle 0x1c7a7b6
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 4]
call dword [section..00cfg]
lea eax, [esp + 0x30]
lea edx, [esp + 0x24]
push eax
push edx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push edi
call ecx
add esp, 0x14
lock dec dword [esi]
jne 0x1c7a632
push esi
call fcn.01c7ebb0
add esp, 4
mov edi, dword [esp + 8]
lea ecx, [esp + 0x14]
call fcn.01c7ec40
mov esi, dword [esp]
cmp byte [esp + 0x23], 0
jns 0x1c7a655
push dword [esp + 0x18]
call fcn.01cafb00
add esp, 4
lea ecx, [esi + 0x9c]
call fcn.01c8f470
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x1ce4818
mov dword [esi + 0xc], 0x1ce4820
cmp byte [esi + 0x37], 0
jns 0x1c7a686
push dword [esi + 0x2c]
call fcn.01cafb00
add esp, 4
add esi, 0x40
mov ecx, edi
call fcn.01c3059e
mov ecx, edi
call fcn.01c30910
mov ecx, esi
call fcn.01c30594
mov ecx, dword [esp + 0x438]
xor ecx, ebp
call fcn.01cb0ac3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x24], esi
lea eax, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
sub esp, 8
movsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
lea edx, [esp + 0x2c]
mov ecx, str.LogMessage
call fcn.01c7ab40
add esp, 8
cmp dword [esi + 4], 3
je 0x1c7a290
jmp 0x1c7a373
push 0x1d00664
call fcn.01cafb77
add esp, 4
cmp dword [0x1d00664], 0xffffffff
jne 0x1c7a2c5
push 0x400
push str.LOG_FATAL
call fcn.01c801c0
add esp, 8
mov dword [0x1d00660], eax
push 0x1d00664
call fcn.01cafbed
add esp, 4
jmp 0x1c7a2c5
push 0x1d00658
call fcn.01cafb77
add esp, 4
cmp dword [0x1d00658], 0xffffffff
jne 0x1c7a51b
xorps xmm0, xmm0
movups xmmword [0x1d00648], xmm0
push 0x1d00658
call fcn.01cafbed
add esp, 4
jmp 0x1c7a51b
push 0x1d00658
call fcn.01cafb77
add esp, 4
cmp dword [0x1d00658], 0xffffffff
jne 0x1c7a555
xorps xmm0, xmm0
movups xmmword [0x1d00648], xmm0
push 0x1d00658
call fcn.01cafbed
add esp, 4
jmp 0x1c7a555
int3
int3
int3
int3