Function at 0x413505
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 0x30]
mov word [eax + ecx], dx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 0x38]
mov byte [eax + edx], 0
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
ja case.default.0x4134fe
mov edx, dword [ebp - 0xc]
jmp dword [edx*4 + 0x413818]
mov eax, dword [ebp + 0x24]
push eax
call fcn.00412390
mov dword [ebp - 8], eax
jmp case.default.0x4134fe
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004123b0
mov dword [ebp - 8], eax
jmp case.default.0x4134fe
cmp dword [ebp + 0x24], 0
jl 0x41355c
push 0x29c
call fcn.00411710
push eax
push 2
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413a40
xor edx, edx
jne 0x413527
mov dword [ebp + 0x24], 0x8007029c
mov eax, dword [ebp + 0x24]
push eax
call fcn.004123d0
mov dword [ebp - 8], eax
jmp case.default.0x4134fe
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004123f0
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x20]
mov dword [edx], eax
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x24]
mov dword [ecx + 4], edx
mov eax, 1
lock xadd dword [0x475a74], eax
inc eax
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 8], eax
cmp dword [ebp + 0x28], 0
je 0x4135bc
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 0x28]
movzx edx, word [ecx + eax]
test edx, edx
je 0x4135bc
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x10], eax
jmp 0x4135c3
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 8]
mov dword [edx + 0x4c], eax
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 0x28], 0
xor edx, edx
mov eax, dword [ebp + 0x40]
add eax, 0x38
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
xor ecx, ecx
mov edx, dword [ebp + 0x40]
add edx, 0x2c
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
cmp dword [0x4759f4], 0
je 0x413663
mov eax, dword [0x4759f4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call dword [0x47744c]
call dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x41366a
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x44], edx
cmp dword [0x4759c8], 0
je 0x41369c
mov eax, dword [ebp + 0x3c]
push eax
mov ecx, dword [ebp + 0x38]
push ecx
mov edx, dword [ebp + 0x40]
push edx
mov eax, dword [0x4759c8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
call dword [0x47744c]
call dword [ebp - 0x1c]
cmp dword [0x4759c0], 0
je 0x4136be
mov ecx, dword [ebp + 0x40]
push ecx
mov edx, dword [0x4759c0]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
call dword [0x47744c]
call dword [ebp - 0x20]
cmp dword [0x4759dc], 0
je 0x4136e0
mov eax, dword [ebp + 0x40]
push eax
mov ecx, dword [0x4759dc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call dword [0x47744c]
call dword [ebp - 0x24]
mov edx, dword [ebp + 0x40]
cmp dword [edx + 4], 0
jl 0x413716
cmp dword [ebp + 0x20], 3
je 0x4136f5
mov byte [ebp - 1], 1
jmp 0x4136f9
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
push eax
call fcn.00411700
movzx ecx, al
push ecx
call fcn.00413cb0
mov edx, dword [ebp + 0x40]
mov dword [edx + 4], 0x8000ffff
call fcn.00413440
movzx eax, al
test eax, eax
je 0x413733
movzx ecx, byte [0x475290]
test ecx, ecx
je 0x413733
mov byte [ebp - 2], 1
jmp 0x413737
mov byte [ebp - 2], 0
mov dl, byte [ebp - 2]
mov byte [ebp - 3], dl
movzx eax, byte [ebp + 0x2c]
test eax, eax
jne 0x41374d
movzx ecx, byte [ebp - 3]
test ecx, ecx
je 0x4137b9
cmp dword [0x4759a0], 0
je 0x413781
movzx edx, byte [0x4759b4]
test edx, edx
jne 0x413781
mov eax, dword [ebp + 0x34]
push eax
mov ecx, dword [ebp + 0x30]
push ecx
mov edx, dword [ebp + 0x40]
push edx
mov eax, dword [0x4759a0]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call dword [0x47744c]
call dword [ebp - 0x28]
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 0x30]
movzx ecx, word [eax + edx]
test ecx, ecx
jne 0x4137a5
mov edx, dword [ebp + 0x40]
push edx
mov eax, dword [ebp + 0x34]
push eax
mov ecx, dword [ebp + 0x30]
push ecx
call fcn.00411ce0
movzx edx, byte [ebp - 3]
test edx, edx
je 0x4137b7
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4137e9
cmp dword [0x4759a0], 0
je 0x4137e9
movzx ecx, byte [0x4759b4]
test ecx, ecx
jne 0x4137e9
push 0
push 0
mov edx, dword [ebp + 0x40]
push edx
mov eax, dword [0x4759a0]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call dword [0x47744c]
call dword [ebp - 0x2c]
movzx ecx, byte [0x4759a4]
test ecx, ecx
je 0x413812
cmp dword [0x4759d0], 0
je 0x413812
mov edx, dword [0x4759d0]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x30]
call dword [0x47744c]
call dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret 0x3c