Function at 0x1c55b80
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, 0x430
mov eax, dword [0x1d15014]
xor eax, ebp
mov dword [esp + 0x428], eax
mov dword [ecx], 0x1d02354
lea ebx, [ecx + 8]
mov dword [esp], ecx
add ecx, 0xc
lea esi, [esp + 0x28]
mov dword [esp + 0x10], ecx
push esi
call fcn.01c6a680
movzx eax, byte [esi + 0xb]
mov ecx, eax
and ecx, 0x7f
mov dword [esp + 4], ecx
test al, al
jns 0x1c55bd3
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
jns 0x1c55be1
push dword [esp + 0x28]
call fcn.01c92c47
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [esp + 0x28]
push esi
call fcn.01c6f1b0
mov ecx, esi
push 0x1d322a4
call fcn.01c6ffb0
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 byte [esp + 8], al
lea ecx, [esp + 0x28]
call fcn.01c6f2f0
movsx eax, byte [esp + 8]
mov ecx, ebx
push eax
call fcn.01c31700
mov ecx, ebx
call fcn.01c30850
xor eax, eax
dec eax
lea edx, [esp + 0x1c]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
push edx
call fcn.01c6a680
test byte [0x1d2f1d8], 0x19
jne 0x1c55da8
mov eax, dword [esp]
cmp dword [eax + 4], 3
je 0x1c55de2
mov ecx, dword [0x1d36674]
test ecx, ecx
je 0x1c55cac
mov eax, dword [esp]
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ebx, dword [eax + 0x90]
mov esi, dword [eax + 0x98]
mov edi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push edi
push dword [esp + 0x18]
call ecx
add esp, 0x14
test al, al
jne 0x1c55ce8
mov eax, dword [0x1d2fe54]
test al, 2
jne 0x1c55e3e
test al, 4
jne 0x1c55d61
mov ecx, dword [esp]
cmp dword [ecx + 4], 2
jl 0x1c55cd3
cmp eax, 1
jbe 0x1c55d61
test al, 1
jne 0x1c55e61
mov eax, dword [esp]
cmp dword [eax + 4], 3
je 0x1c55ea6
cmp byte [esp + 0x27], 0
jns 0x1c55cfb
push dword [esp + 0x1c]
call fcn.01c92c47
add esp, 4
mov esi, dword [esp]
lea ecx, [esi + 0x9c]
call fcn.01c82290
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x1d02808
mov dword [esi + 0xc], 0x1d02810
cmp byte [esi + 0x37], 0
jns 0x1c55d2f
push dword [esi + 0x2c]
call fcn.01c92c47
add esp, 4
add esi, 0x40
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.01c6a620
mov ecx, edi
call fcn.01c6a670
mov ecx, esi
call fcn.01c6a610
mov ecx, dword [esp + 0x428]
xor ecx, ebp
call fcn.01c93c03
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x1c]
movzx ecx, byte [esi + 0xb]
mov edi, ecx
and edi, 0x7f
test cl, cl
cmovs edi, dword [esi + 4]
cmovs esi, dword [esi]
test edi, edi
je 0x1c55cd3
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.01ca9e80
add esp, 0xc
test eax, eax
js 0x1c55d9e
add ebx, eax
cmp edi, ebx
ja 0x1c55d81
mov eax, dword [0x1d2fe54]
jmp 0x1c55cd3
lea edx, [esp + 0x14]
mov eax, dword [esp]
mov dword [edx], eax
lea eax, [esp + 0x1c]
mov dword [edx + 4], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
sub esp, 8
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
mov ecx, str.LogMessage
call fcn.01cdffb0
add esp, 8
jmp 0x1c55c5e
cmp byte [0x1d3669c], 0
jne 0x1c55c6b
mov byte [0x1d3669c], 1
mov eax, dword [0x1d366a4]
mov ecx, dword [0x1d31114]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c55ff3
mov ecx, dword [esp]
lea eax, [esp + 0x28]
push eax
call fcn.01cdfc40
movzx eax, byte [esp + 0x33]
test al, al
jns 0x1c55f75
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
jmp 0x1c55f7c
cmp byte [esp + 0x27], 0
jns 0x1c55e4d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1d2fe54]
jmp 0x1c55cb9
call fcn.01cdf910
test al, al
je 0x1c55cdb
lea eax, [esp + 0x1c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov dword [esp + 0x28], 0xffffffff
cmovs eax, dword [eax]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
push dword [0x1d36680]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1c55cdb
mov ecx, dword [0x1d33af0]
test ecx, ecx
je 0x1c55ed1
movzx eax, byte [esp + 0x27]
test al, al
jns 0x1c55ec3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x1c55eca
and eax, 0x7f
lea edx, [esp + 0x1c]
push eax
push edx
call fcn.01cda7b0
mov esi, 0x400
push esi
push 0xff
lea eax, [esp + 0x30]
push eax
call fcn.01c96470
add esp, 0xc
cmp byte [esp + 0x27], 0
jns 0x1c55ef6
mov eax, dword [esp + 0x1c]
jmp 0x1c55efa
lea eax, [esp + 0x1c]
push esi
push eax
lea esi, [esp + 0x30]
push esi
call fcn.01c72ee0
add esp, 0xc
push esi
call fcn.01c6a670
add esp, 4
call fcn.01cdfb30
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x1c56036
mov dword [esp + 0x14], 0xffffffff
call fcn.01cdfb30
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x1c56039
shl edx, 2
add edx, dword [eax]
lea esi, [esp + 0x14]
mov ecx, esi
push edx
call fcn.01c7b590
cmp dword [esi], 0
jne 0x1c55f68
lea ecx, [esp + 0x14]
call fcn.01c7b560
jmp 0x1c55ce8
cmp byte [esp + 0x27], 0
jns 0x1c55fab
mov esi, dword [esp + 0x1c]
jmp 0x1c55faf
and eax, 0x7f
lea ecx, [esp + 0x28]
push eax
push ecx
push dword [0x1d366a0]
call fcn.01c7c4b0
add esp, 0xc
cmp byte [esp + 0x33], 0
jns 0x1c55f9f
push dword [esp + 0x28]
call fcn.01c92c47
add esp, 4
mov byte [0x1d3669c], 0
jmp 0x1c55c6b
lea esi, [esp + 0x1c]
mov edi, esi
add edi, dword [esp + 4]
je 0x1c5603c
push edi
call fcn.01cace20
add esp, 4
mov edx, dword [esp]
mov ecx, dword [edx + 0x90]
mov ebx, dword [esp + 4]
sub ebx, ecx
add esi, ecx
lea ecx, [esp + 0x14]
push eax
push edi
push ebx
push esi
push dword [edx + 0x98]
push dword [edx + 0x94]
call fcn.01cdfb90
jmp 0x1c55f5a
push 0x1d366a4
call fcn.01c92cb7
add esp, 4
cmp dword [0x1d366a4], 0xffffffff
jne 0x1c55e17
push 0x400
push str.LOG_FATAL
call fcn.01c58fb0
add esp, 8
mov dword [0x1d366a0], eax
push 0x1d366a4
call fcn.01c92d2d
add esp, 4
jmp 0x1c55e17
int3
int3
int3