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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2340
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
call fcn.0046cc30
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040ba20
mov eax, dword [0x61a258]
test eax, eax
je 0x46c5c4
lea ecx, [ebp - 0x28]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
je 0x46c5c4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x46c78b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c781
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c7b9
jmp 0x46c781
mov eax, dword [0x60ffa0]
cmp eax, 2
je 0x46c5da
cmp eax, 3
je 0x46c5da
cmp dword [esi], 2
jl 0x46c623
jmp 0x46c5ec
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x5d2398
push 2
call fcn.00576bf5
add esp, 4
push eax
call fcn.0046b340
add esp, 0xc
push 2
call fcn.00576bf5
add esp, 4
push eax
call fcn.0057e6a5
add esp, 4
xor ecx, ecx
call fcn.0046b460
mov eax, dword [0x60ffa0]
test eax, eax
je 0x46c6c4
cmp eax, 2
je 0x46c6c4
cmp dword [0x61a25c], 0
jne 0x46c659
push 0xffffffffffffffff
push dword [0x61a24c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x46c665
push dword [0x61a248]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0046b5d0
test al, al
je 0x46c6a1
push 2
push 0
push 0
push dword [0x61a240]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x5c]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [0x61a240]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x61a25c], 0
jne 0x46c6b8
push dword [0x61a24c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x46c6c4
push dword [0x61a248]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
cmp eax, 4
jne 0x46c72a
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x46c7be
cmp dword [0x61a264], eax
je 0x46c7be
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0040ba20
push eax
call dword [0x61a264]
mov edx, dword [ebp - 0x2c]
add esp, 4
cmp edx, 0x10
jb 0x46c58d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c772
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c7c3
jmp 0x46c772
cmp eax, 3
jne 0x46c58d
cmp dword [0x61a23c], 0
mov ecx, edi
je 0x46c750
lea eax, [ebp - 0x40]
push eax
call fcn.0040ba20
push eax
call dword [0x61a23c]
jmp 0x46c6f7
lea eax, [ebp - 0x58]
push eax
call fcn.0040ba20
mov ecx, eax
call fcn.0046bd40
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x46c58d
mov ecx, dword [ebp - 0x58]
inc edx
jmp 0x46c70a
push edx
push ecx
call fcn.0055053d
add esp, 8
jmp 0x46c58d
push edx
push ecx
call fcn.0055053d
add esp, 8
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.0040b450
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret
call fcn.00572795
call fcn.00486a50
call fcn.00572795
int3