Function at 0x403cf8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40e120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0x38]
push edi
mov dword [ebp - 0x20], ecx
xor edi, edi
mov ecx, dword [ebp + 0x30]
mov word [eax], di
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
mov byte [ecx], al
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x28], ecx
xor ecx, ecx
mov dword [ebp - 0x24], edx
sub eax, ecx
je 0x403d9d
sub eax, 1
je 0x403d94
sub eax, 1
je 0x403d6b
sub eax, 1
jne 0x403da9
push edi
call fcn.00403720
jmp 0x403da4
test edi, edi
js 0x403d8b
mov ecx, dword [ebp - 0x20]
mov edi, 0x8007029c
push edi
push 2
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00404032
mov ecx, edi
call fcn.004036fb
jmp 0x403da4
mov ecx, edi
call fcn.004036e3
jmp 0x403da4
mov ecx, edi
call fcn.004036cb
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [esi], ebx
xor ebx, ebx
inc ebx
mov dword [esi + 4], edi
mov eax, ebx
lock xadd dword [0x40e558], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x403dcb
cmp word [eax], cx
jne 0x403dcd
mov eax, ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x38]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x4c], eax
xor eax, eax
mov dword [esi + 0x28], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [0x40e4e0]
test edi, edi
je 0x403e2e
mov ecx, edi
call dword [0x40f1b4]
call edi
jmp 0x403e30
mov eax, ecx
mov edi, dword [0x40e4cc]
mov dword [esi + 0x44], eax
test edi, edi
je 0x403e50
push 0x400
push dword [ebp - 0x28]
mov ecx, edi
push esi
call dword [0x40f1b4]
call edi
mov edi, dword [0x40e4c8]
test edi, edi
je 0x403e65
push esi
mov ecx, edi
call dword [0x40f1b4]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x403e7d
cmp dword [ebp + 0x18], 3
jne 0x403f43
mov dword [esi + 4], 0x8000ffff
cmp byte [0x40e4ac], al
jne 0x403ec0
mov edi, dword [0x40e4b8]
cmp dword [0x40e4c4], eax
jne 0x403e97
test edi, edi
je 0x403ec6
mov ebx, dword [0x40e4b4]
test ebx, ebx
je 0x403eb7
mov ecx, ebx
call dword [0x40f1b4]
call ebx
test al, al
jne 0x403ebb
mov edi, dword [0x40e4b8]
xor eax, eax
mov bl, al
jmp 0x403ec6
xor ebx, ebx
inc ebx
xor eax, eax
mov edi, dword [0x40e4b8]
cmp byte [ebp + 0x24], 0
jne 0x403eeb
test bl, bl
jne 0x403eeb
test edi, edi
je 0x403f30
cmp byte [0x40e4c0], bl
jne 0x403f30
push eax
push eax
push esi
mov ecx, edi
call dword [0x40f1b4]
call edi
jmp 0x403f30
test edi, edi
je 0x403f0b
cmp byte [0x40e4c0], 0
jne 0x403f0b
push 0x800
push dword [ebp - 0xc]
mov ecx, edi
push esi
call dword [0x40f1b4]
call edi
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp word [eax], cx
jne 0x403f25
push esi
mov edx, 0x800
mov ecx, eax
call fcn.004033fa
mov eax, dword [ebp - 0xc]
test bl, bl
je 0x403f30
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.0040b7c0
mov esp, ebp
pop ebp
ret 0x34
call fcn.0040418b
int3