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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x1d043b4
lea ebx, [ecx + 8]
mov dword [ebp - 0x424], ecx
add ecx, 0xc
lea esi, [ebp - 0x410]
mov dword [ebp - 0x434], ecx
push esi
call fcn.01c76290
movzx eax, byte [esi + 0xb]
mov ecx, eax
and ecx, 0x7f
mov dword [ebp - 0x428], ecx
test al, al
jns 0x1c61a19
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x428], eax
jns 0x1c61a29
push dword [ebp - 0x410]
call fcn.01c9ba37
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x410]
push esi
call fcn.01c7a530
mov ecx, esi
push 0x1d3644c
call fcn.01c7a920
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 [ebp - 0x42c], al
lea ecx, [ebp - 0x410]
call fcn.01c7a670
movsx eax, byte [ebp - 0x42c]
mov ecx, ebx
push eax
call fcn.01c31700
mov ecx, ebx
call fcn.01c30850
xor eax, eax
dec eax
lea edx, [ebp - 0x41c]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x430], edx
push edx
call fcn.01c76290
test byte [0x1d32298], 0x19
jne 0x1c61c1a
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 3
je 0x1c61c4f
mov ecx, dword [0x1d3a838]
test ecx, ecx
je 0x1c61b0e
mov eax, dword [ebp - 0x424]
mov edx, dword [eax + 4]
mov dword [ebp - 0x42c], edx
mov ebx, dword [eax + 0x90]
mov esi, dword [eax + 0x98]
mov edi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [ebp - 0x41c]
push eax
push ebx
push esi
push edi
push dword [ebp - 0x42c]
call ecx
add esp, 0x14
test al, al
jne 0x1c61b50
mov eax, dword [0x1d32f14]
test al, 2
jne 0x1c61cb6
test al, 4
jne 0x1c61bd1
mov ecx, dword [ebp - 0x424]
cmp dword [ecx + 4], 2
jl 0x1c61b38
cmp eax, 1
jbe 0x1c61bd1
test al, 1
jne 0x1c61ce1
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 3
je 0x1c61d2c
cmp byte [ebp - 0x411], 0
jns 0x1c61b67
push dword [ebp - 0x41c]
call fcn.01c9ba37
add esp, 4
mov esi, dword [ebp - 0x424]
lea ecx, [esi + 0x9c]
call fcn.01c8bea0
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x1d04868
mov dword [esi + 0xc], 0x1d04870
cmp byte [esi + 0x37], 0
jns 0x1c61b9e
push dword [esi + 0x2c]
call fcn.01c9ba37
add esp, 4
add esi, 0x40
mov edi, dword [ebp - 0x434]
mov ecx, edi
call fcn.01c76230
mov ecx, edi
call fcn.01c76280
mov ecx, esi
call fcn.01c76220
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x41c]
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 0x1c61b38
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.01cb2bb2
add esp, 0xc
test eax, eax
js 0x1c61c10
add ebx, eax
cmp edi, ebx
ja 0x1c61bf3
mov eax, dword [0x1d32f14]
jmp 0x1c61b38
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x40c], eax
mov ecx, str.LogMessage
xor edx, edx
lea eax, [ebp - 0x410]
push eax
push 0
call fcn.01ce3310
add esp, 8
jmp 0x1c61ab4
cmp byte [0x1d3a860], 0
jne 0x1c61ac4
mov byte [0x1d3a860], 1
mov eax, dword [0x1d3a868]
mov ecx, dword [0x1d340c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c61ea6
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x410]
push eax
call fcn.01ce2fb0
movzx eax, byte [ebp - 0x405]
test al, al
jns 0x1c61e17
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x40c]
jmp 0x1c61e20
cmp byte [ebp - 0x411], 0
jns 0x1c61ccb
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x430], eax
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1d32f14]
jmp 0x1c61b1b
call fcn.01ce2c80
test al, al
je 0x1c61b40
lea eax, [ebp - 0x41c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov dword [ebp - 0x410], 0xffffffff
cmovs eax, dword [eax]
push 0
lea ecx, [ebp - 0x410]
push ecx
push edx
push eax
push dword [0x1d3a844]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1c61b40
mov ecx, dword [0x1d37c98]
test ecx, ecx
je 0x1c61d5f
movzx eax, byte [ebp - 0x411]
test al, al
jns 0x1c61d4f
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
jmp 0x1c61d58
and eax, 0x7f
lea edx, [ebp - 0x41c]
push eax
push edx
call fcn.01cdda50
mov esi, 0x400
push esi
push 0xff
lea eax, [ebp - 0x410]
push eax
call fcn.01c9f2d0
add esp, 0xc
cmp byte [ebp - 0x411], 0
jns 0x1c61d8a
mov eax, dword [ebp - 0x41c]
jmp 0x1c61d90
lea eax, [ebp - 0x41c]
push esi
push eax
lea esi, [ebp - 0x410]
push esi
call fcn.01c7d7b0
add esp, 0xc
push esi
call fcn.01c76280
add esp, 4
call fcn.01ce2ea0
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x1c61ee9
mov dword [ebp - 0x420], 0xffffffff
call fcn.01ce2ea0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x1c61eec
shl edx, 2
add edx, dword [eax]
lea esi, [ebp - 0x420]
mov ecx, esi
push edx
call fcn.01c85570
cmp dword [esi], 0
jne 0x1c61e06
lea ecx, [ebp - 0x420]
call fcn.01c85540
jmp 0x1c61b50
cmp byte [ebp - 0x411], 0
jns 0x1c61e53
mov esi, dword [ebp - 0x41c]
jmp 0x1c61e59
and eax, 0x7f
lea ecx, [ebp - 0x410]
push eax
push ecx
push dword [0x1d3a864]
call fcn.01c862f0
add esp, 0xc
cmp byte [ebp - 0x405], 0
jns 0x1c61e47
push dword [ebp - 0x410]
call fcn.01c9ba37
add esp, 4
mov byte [0x1d3a860], 0
jmp 0x1c61ac4
lea esi, [ebp - 0x41c]
mov edi, esi
add edi, dword [ebp - 0x428]
je 0x1c61eef
push edi
call fcn.01cb5b50
add esp, 4
mov edx, dword [ebp - 0x424]
mov ecx, dword [edx + 0x90]
mov ebx, dword [ebp - 0x428]
sub ebx, ecx
add esi, ecx
lea ecx, [ebp - 0x420]
push eax
push edi
push ebx
push esi
push dword [edx + 0x98]
push dword [edx + 0x94]
call fcn.01ce2f00
jmp 0x1c61df6
push 0x1d3a868
call fcn.01c9baa7
add esp, 4
cmp dword [0x1d3a868], 0xffffffff
jne 0x1c61c84
push 0x400
push str.LOG_FATAL
call fcn.01c650c0
add esp, 8
mov dword [0x1d3a864], eax
push 0x1d3a868
call fcn.01c9bb1d
add esp, 4
jmp 0x1c61c84
int3
int3
int3