Function at 0x1c4e870
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 [0x1d02014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x1cf10c4
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.01c6a170
movzx eax, byte [esi + 0xb]
mov ecx, eax
and ecx, 0x7f
mov dword [ebp - 0x428], ecx
test al, al
jns 0x1c4e8c9
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x428], eax
jns 0x1c4e8d9
push dword [ebp - 0x410]
call fcn.01c8ea9e
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x410]
push esi
call fcn.01c6db20
mov ecx, esi
push 0x1d08484
call fcn.01c6df10
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.01c6dc60
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.01c6a170
test byte [0x1d05360], 0x19
jne 0x1c4eaca
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 3
je 0x1c4eaff
mov ecx, dword [0x1d13c10]
test ecx, ecx
je 0x1c4e9be
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 0x1c4ea00
mov eax, dword [0x1d03f34]
test al, 2
jne 0x1c4eb66
test al, 4
jne 0x1c4ea81
mov ecx, dword [ebp - 0x424]
cmp dword [ecx + 4], 2
jl 0x1c4e9e8
cmp eax, 1
jbe 0x1c4ea81
test al, 1
jne 0x1c4eb91
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 3
je 0x1c4ebdc
cmp byte [ebp - 0x411], 0
jns 0x1c4ea17
push dword [ebp - 0x41c]
call fcn.01c8ea9e
add esp, 4
mov esi, dword [ebp - 0x424]
lea ecx, [esi + 0x9c]
call fcn.01c7a790
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x1cf1678
mov dword [esi + 0xc], 0x1cf1680
cmp byte [esi + 0x37], 0
jns 0x1c4ea4e
push dword [esi + 0x2c]
call fcn.01c8ea9e
add esp, 4
add esi, 0x40
mov edi, dword [ebp - 0x434]
mov ecx, edi
call fcn.01c6a110
mov ecx, edi
call fcn.01c6a160
mov ecx, esi
call fcn.01c6a100
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8f4d3
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 0x1c4e9e8
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.01ca4fcf
add esp, 0xc
test eax, eax
js 0x1c4eac0
add ebx, eax
cmp edi, ebx
ja 0x1c4eaa3
mov eax, dword [0x1d03f34]
jmp 0x1c4e9e8
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.01ccc5f0
add esp, 8
jmp 0x1c4e964
cmp byte [0x1d13c38], 0
jne 0x1c4e974
mov byte [0x1d13c38], 1
mov eax, dword [0x1d13c40]
mov ecx, dword [0x1d06174]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c4ed56
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x410]
push eax
call fcn.01ccc2c0
movzx eax, byte [ebp - 0x405]
test al, al
jns 0x1c4ecc7
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x40c]
jmp 0x1c4ecd0
cmp byte [ebp - 0x411], 0
jns 0x1c4eb7b
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x430], eax
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1d03f34]
jmp 0x1c4e9cb
call fcn.01ccbf90
test al, al
je 0x1c4e9f0
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 [0x1d13c1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1c4e9f0
mov ecx, dword [0x1d13d50]
test ecx, ecx
je 0x1c4ec0f
movzx eax, byte [ebp - 0x411]
test al, al
jns 0x1c4ebff
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
jmp 0x1c4ec08
and eax, 0x7f
lea edx, [ebp - 0x41c]
push eax
push edx
call fcn.01ccf350
mov esi, 0x400
push esi
push 0xff
lea eax, [ebp - 0x410]
push eax
call fcn.01c92240
add esp, 0xc
cmp byte [ebp - 0x411], 0
jns 0x1c4ec3a
mov eax, dword [ebp - 0x41c]
jmp 0x1c4ec40
lea eax, [ebp - 0x41c]
push esi
push eax
lea esi, [ebp - 0x410]
push esi
call fcn.01c71390
add esp, 0xc
push esi
call fcn.01c6a160
add esp, 4
call fcn.01ccc1b0
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x1c4ed99
mov dword [ebp - 0x420], 0xffffffff
call fcn.01ccc1b0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x1c4ed9c
shl edx, 2
add edx, dword [eax]
lea esi, [ebp - 0x420]
mov ecx, esi
push edx
call fcn.01c757f0
cmp dword [esi], 0
jne 0x1c4ecb6
lea ecx, [ebp - 0x420]
call fcn.01c757c0
jmp 0x1c4ea00
cmp byte [ebp - 0x411], 0
jns 0x1c4ed03
mov esi, dword [ebp - 0x41c]
jmp 0x1c4ed09
and eax, 0x7f
lea ecx, [ebp - 0x410]
push eax
push ecx
push dword [0x1d13c3c]
call fcn.01c7a7b0
add esp, 0xc
cmp byte [ebp - 0x405], 0
jns 0x1c4ecf7
push dword [ebp - 0x410]
call fcn.01c8ea9e
add esp, 4
mov byte [0x1d13c38], 0
jmp 0x1c4e974
lea esi, [ebp - 0x41c]
mov edi, esi
add edi, dword [ebp - 0x428]
je 0x1c4ed9f
push edi
call fcn.01ca86f0
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.01ccc210
jmp 0x1c4eca6
push 0x1d13c40
call fcn.01c8eb17
add esp, 4
cmp dword [0x1d13c40], 0xffffffff
jne 0x1c4eb34
push 0x400
push str.LOG_FATAL
call fcn.01c576d0
add esp, 8
mov dword [0x1d13c3c], eax
push 0x1d13c40
call fcn.01c8eb8d
add esp, 4
jmp 0x1c4eb34
int3
int3
int3