Function at 0x40b0a0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4253f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
push edi
push ebx
lea ecx, [esp + 0x50]
call fcn.0041eabb
push 0x4b1fc
mov dword [esp + 0x44], 0
call fcn.0041ef11
mov ebp, eax
mov ecx, 0x12c7f
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov esi, ebx
mov edi, ebp
lea edx, [ebp + 0x4b155]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x104]
lea ecx, [ebx + 0x14d]
mov dword [ebp + 0x104], eax
lea esi, [ebx + 0x10c]
mov eax, dword [ecx]
lea edi, [ebp + 0x4b114]
mov dword [edx], eax
add esp, 4
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
push 0
mov eax, dword [ecx + 8]
push 0x80
mov dword [edx + 8], eax
push 3
mov ecx, dword [ecx + 0xc]
push 0
mov dword [edx + 0xc], ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x1d0]
lea edi, [ebp + 0x4b1a6]
mov ecx, 5
mov dword [esp + 0x28], esi
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x1e4]
lea edi, [ebp + 0x4b1ba]
mov ecx, 0x10
push 1
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x15d]
lea edi, [ebp + 0x4b165]
mov ecx, 0x10
push closesocket
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x108]
mov dword [ebp + 0x108], edx
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or esi, 0xffffffff
cmp eax, esi
je 0x40b334
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.0041ef80
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 1
call fcn.0041f3d7
mov edi, eax
test edi, edi
jne 0x40b1f3
lea ecx, [esp + 0x28]
call fcn.0041f2f8
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
call fcn.0041f020
jmp 0x40b356
mov edx, dword [0x432564]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 0x1b4e81b5
mov ecx, 0x4b000
mul edi
mov esi, edx
mov eax, edi
xor edx, edx
div ecx
shr esi, 0xf
mov dword [esp + 0x10], esi
mov edi, edx
test edi, edi
mov dword [esp + 0x14], edi
je 0x40b22a
inc esi
mov dword [esp + 0x10], esi
push esi
lea edx, [esp + 0x20]
push 0x42b834
push edx
xor ebx, ebx
call fcn.0041269a
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x432570
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x40b25f
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40b27a
mov eax, edi
mov dword [ebp + 0x104], 1
mov dword [ebp + 0x4b110], eax
jmp 0x40b289
mov eax, 0x4b000
mov dword [ebp + 0x104], 0
push eax
lea eax, [ebp + 0x110]
push eax
lea ecx, [esp + 0x30]
call fcn.0041f1fa
push ebp
mov dword [ebp + 0x10c], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
push 0x4b1fc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x4c]
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x4b1a6]
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x24
and ecx, 3
push 5
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x432300]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jne 0x40b257
push 0x432570
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x28]
call fcn.0041f2f8
test ebp, ebp
je 0x40b30f
push ebp
call fcn.0041ef3a
add esp, 4
mov ecx, dword [0x432564]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
call fcn.0041f020
mov dword [esp + 0x40], 0xffffffff
jmp 0x40b35a
mov edx, dword [0x432564]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x48]
push 0x4b1fc
push ebp
push 0x29
push 5
push eax
call dword [0x432300]
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x4c]
call fcn.0041ea4d
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret