Function at 0x413c20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447f70
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x462304]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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 ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + 4]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 3
ja case.default.0x413c96
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x414008]
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax + 8]
push ecx
call fcn.004152c0
add esp, 4
mov dword [ebp - 0x14], eax
jmp case.default.0x413c96
mov edx, dword [ebp + 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.00415320
add esp, 4
mov dword [ebp - 0x14], eax
jmp case.default.0x413c96
mov ecx, dword [ebp + 0x40]
cmp dword [ecx + 8], 0
jl 0x413d25
push 0x29c
call fcn.0041c060
add esp, 4
push eax
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.00406de0
add esp, 0x1c
xor edx, edx
jne 0x413cd4
mov eax, dword [ebp + 0x40]
mov dword [eax + 8], 0x8007029c
mov ecx, dword [ebp + 0x40]
mov edx, dword [ecx + 8]
push edx
call fcn.00411f60
add esp, 4
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.00415300
add esp, 4
mov dword [ebp - 0x14], eax
jmp case.default.0x413c96
mov ecx, dword [ebp + 0x40]
mov edx, dword [ecx + 8]
push edx
call fcn.004152e0
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov edx, dword [ebp + 0x40]
mov dword [edx + 4], 0
mov eax, dword [ebp + 0x24]
movzx ecx, byte [eax + 8]
push ecx
call fcn.00408c40
add esp, 4
movzx edx, al
test edx, edx
je 0x413d85
push 8
mov eax, dword [ebp + 0x40]
add eax, 4
push eax
call fcn.0040e4d0
add esp, 8
xor ecx, ecx
jne 0x413d5d
mov edx, 1
lock xadd dword [0x46255c], edx
inc edx
mov eax, dword [ebp + 0x40]
mov dword [eax + 0x10], edx
cmp dword [ebp + 0x28], 0
je 0x413dbe
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 0x28]
movzx ecx, word [eax + edx]
test ecx, ecx
je 0x413dbe
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x1c], edx
jmp 0x413dc5
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp + 0x40]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp + 0x40]
mov dword [edx + 0x30], 0
push 0xc
push 0
mov eax, dword [ebp + 0x40]
add eax, 0x40
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0xc
push 0
mov ecx, dword [ebp + 0x40]
add ecx, 0x34
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [0x4624ac], 0
je 0x413e5d
call dword [0x4624ac]
mov dword [ebp - 0x20], eax
jmp 0x413e64
mov dword [ebp - 0x20], 0
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x4c], eax
cmp dword [0x4624a4], 0
je 0x413e8e
mov ecx, dword [0x4624a4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x3c]
push edx
mov eax, dword [ebp + 0x38]
push eax
mov ecx, dword [ebp + 0x40]
push ecx
call dword [ebp - 0x24]
cmp dword [0x4624a8], 0
je 0x413ea7
mov edx, dword [0x4624a8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0x40]
push eax
call dword [ebp - 0x28]
cmp dword [0x4624e0], 0
je 0x413ec8
movzx ecx, byte [ebp + 0x2c]
test ecx, ecx
jne 0x413ec8
mov edx, dword [0x4624e0]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x40]
push eax
call dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x40]
cmp dword [ecx + 8], 0
jl 0x413f19
cmp dword [ebp + 0x20], 3
je 0x413edd
mov byte [ebp - 0xd], 1
jmp 0x413ee1
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
call fcn.00408c40
add esp, 4
movzx eax, al
push eax
call fcn.0040f950
add esp, 4
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 8], 0x8000ffff
mov edx, dword [ebp + 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.00411f60
add esp, 4
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 0xc], eax
call fcn.00413540
movzx edx, al
test edx, edx
je 0x413f36
movzx eax, byte [section..data]
test eax, eax
je 0x413f36
mov byte [ebp - 0xe], 1
jmp 0x413f3a
mov byte [ebp - 0xe], 0
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp + 0x2c]
test edx, edx
jne 0x413f50
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x413fb7
cmp dword [0x462480], 0
je 0x413f7c
movzx ecx, byte [0x462498]
test ecx, ecx
jne 0x413f7c
mov edx, dword [0x462480]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x34]
push eax
mov ecx, dword [ebp + 0x30]
push ecx
mov edx, dword [ebp + 0x40]
push edx
call dword [ebp - 0x30]
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0x30]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x413fa3
mov ecx, dword [ebp + 0x40]
push ecx
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x30]
push eax
call fcn.0040fd40
add esp, 0xc
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
je 0x413fb5
mov edx, dword [ebp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x413fdf
cmp dword [0x462480], 0
je 0x413fdf
movzx eax, byte [0x462498]
test eax, eax
jne 0x413fdf
mov ecx, dword [0x462480]
mov dword [ebp - 0x34], ecx
push 0
push 0
mov edx, dword [ebp + 0x40]
push edx
call dword [ebp - 0x34]
movzx eax, byte [0x462490]
test eax, eax
je 0x413ff9
cmp dword [0x4624b4], 0
je 0x413ff9
call dword [0x4624b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret