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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578723
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 3
xor ebx, ebx
push 0x5ad2b8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004043a0
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
mov edi, dword [eax]
cmp edi, eax
je 0x414130
lea eax, [edi + 0xc]
lea ecx, [eax + 0x1c]
mov esi, 8
cmp dword [ecx + 0x14], esi
jb 0x414054
mov ecx, dword [ecx]
cmp dword [eax + 0x14], esi
jb 0x41405b
mov eax, dword [eax]
push ecx
push eax
push 0x5ad2bc
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00413cd0
add esp, 0x14
cmp dword [ebp - 0x50], esi
jb 0x414083
mov eax, dword [ebp - 0x64]
push eax
call fcn.0044c90f
add esp, 4
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 4]
cmp edi, dword [eax]
je 0x41409e
mov edx, dword [ebp - 0x1c]
push 1
add edx, 0xfffffffe
push edx
lea eax, [ebp - 0x2c]
call fcn.00414f00
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00447bc0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
push ebx
push eax
add edx, 0xfffffffe
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00414d80
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 0x10
jb 0x4140dc
mov eax, dword [ebp - 0x64]
push eax
call fcn.0044c90f
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp byte [edi + 0x45], bl
jne 0x414124
mov eax, dword [edi + 8]
cmp byte [eax + 0x45], bl
jne 0x41410b
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], bl
jne 0x414124
nop
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], bl
je 0x414100
jmp 0x414124
mov eax, dword [edi + 4]
cmp byte [eax + 0x45], bl
jne 0x414122
cmp edi, dword [eax + 8]
jne 0x414122
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], bl
je 0x414113
mov edi, eax
mov ecx, dword [ebp - 0x68]
cmp edi, dword [ecx + 4]
jne 0x414042
mov esi, dword [0x5e0834]
cmp esi, ebx
jne 0x414162
push 0x38
call fcn.0044c8d5
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x414158
mov esi, eax
call fcn.00413e40
jmp 0x41415a
xor eax, eax
mov esi, eax
mov dword [0x5e0834], esi
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x414178
cmp eax, 0xffffffff
jne 0x41419a
cmp dword [esi + 0x14], 8
jb 0x414182
mov eax, dword [esi]
jmp 0x414184
mov eax, esi
push ebx
push ebx
push 4
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x4141e3
cmp eax, 0xffffffff
je 0x4141e3
push 2
push ebx
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4141c0
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push ebx
lea edx, [ebp - 0x6c]
push edx
mov edx, dword [esi + 0x1c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4141e3
push 0x5ad2cc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x34], 8
jb 0x4141fc
mov eax, dword [ebp - 0x48]
push eax
call fcn.0044c90f
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
jb 0x41421e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0044c90f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret