Function at 0x404cc6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov word [eax], si
xor ebx, ebx
mov eax, dword [ebp + 0x30]
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 0x1c]
mov byte [eax], bl
mov ebx, dword [ebp + 0x18]
mov eax, ebx
mov dword [ebp - 0x10], ecx
sub eax, esi
je 0x404d53
sub eax, 1
je 0x404d4a
sub eax, 1
je 0x404d41
sub eax, 1
je 0x404d1b
sub eax, 1
jne 0x404d5d
push edi
call fcn.00404710
jmp 0x404d5a
test edi, edi
js 0x404d38
mov edi, 0x8007029c
push edi
push 3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405020
mov ecx, edi
call fcn.004046eb
jmp 0x404d5a
mov ecx, edi
call fcn.004046d3
jmp 0x404d5a
mov ecx, edi
call fcn.004046bb
jmp 0x404d5a
mov ecx, edi
call fcn.004046a3
mov dword [ebp - 8], eax
mov esi, dword [ebp + 0x38]
mov dword [esi], ebx
xor ebx, ebx
inc ebx
mov dword [esi + 4], edi
mov eax, ebx
lock xadd dword [0x418c94], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404d84
xor ecx, ecx
cmp word [eax], cx
jne 0x404d86
xor eax, eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x418cd4]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x4c], eax
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
test edi, edi
je 0x404de7
mov ecx, edi
call dword [0x419274]
call edi
mov edx, dword [ebp + 0x30]
mov ecx, esi
push 0x400
mov dword [esi + 0x44], eax
call fcn.00404a5d
mov edi, dword [0x418cdc]
test edi, edi
je 0x404e0e
push esi
mov ecx, edi
call dword [0x419274]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x404e1f
cmp dword [ebp + 0x18], 4
jne 0x404eae
mov edi, dword [0x418ce8]
cmp byte [0x418ce4], al
jne 0x404e3b
cmp dword [0x418ce0], eax
jne 0x404e39
test edi, edi
je 0x404e3b
mov bl, al
cmp byte [ebp + 0x24], al
jne 0x404e5f
test bl, bl
jne 0x404e5f
test edi, edi
je 0x404e9b
cmp byte [0x418cd8], al
jne 0x404e9b
push eax
push eax
push esi
mov ecx, edi
call dword [0x419274]
call edi
jmp 0x404e9b
test edi, edi
je 0x404e76
push 0x800
push dword [ebp + 0x28]
mov ecx, edi
push esi
call dword [0x419274]
call edi
mov eax, dword [ebp + 0x28]
xor ecx, ecx
cmp word [eax], cx
jne 0x404e90
push esi
mov edx, 0x800
mov ecx, eax
call fcn.004044ad
mov eax, dword [ebp + 0x28]
test bl, bl
je 0x404e9b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413bf0
mov esp, ebp
pop ebp
ret 0x34
mov ecx, dword [ebp + 4]
mov edx, 0xb46
push 0x4016f8
call fcn.004050a3
int3