Function at 0x46b180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b89e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x4bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4cc]
mov esi, ecx
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x70], eax
call fcn.0046b8d0
xor ebx, ebx
mov dword [esp + 0x4c4], ebx
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x4c4], 1
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4c4], 2
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push str.ChannelCount
mov ecx, str.Common
mov edx, esi
mov byte [esp + 0x4c8], 4
call fcn.0041b290
cmp eax, ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x38], ebx
jle 0x46b7c0
lea esp, [esp]
mov edx, dword [esp + 0x40]
cmp dword [edx - 0xc], ebx
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x46b2c2
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x46b29c
cmp dword [edx - 8], ebx
jl 0x46b8c2
mov dword [edx - 0xc], ebx
mov ecx, dword [esp + 0x40]
mov word [ecx], bx
jmp 0x46b2c2
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b2b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x44]
cmp dword [edx - 0xc], ebx
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x46b314
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x46b2ee
cmp dword [edx - 8], ebx
jl 0x46b8c2
mov dword [edx - 0xc], ebx
mov ecx, dword [esp + 0x44]
mov word [ecx], bx
jmp 0x46b314
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x48]
cmp dword [edx - 0xc], ebx
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x46b366
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x46b340
cmp dword [edx - 8], ebx
jl 0x46b8c2
mov dword [edx - 0xc], ebx
mov ecx, dword [esp + 0x48]
mov word [ecx], bx
jmp 0x46b366
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x4c]
cmp dword [edx - 0xc], ebx
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x46b3b8
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x46b392
cmp dword [edx - 8], ebx
jl 0x46b8c2
mov dword [edx - 0xc], ebx
mov ecx, dword [esp + 0x4c]
mov word [ecx], bx
jmp 0x46b3b8
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b3a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
cmp edi, eax
mov ebx, eax
jbe 0x46b3d3
call fcn.0049445b
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
cmp edi, eax
lea esi, [esp + 0x58]
jbe 0x46b3e0
call fcn.0049445b
push ebx
push esi
lea eax, [esp + 0x60]
push edi
push eax
lea ecx, [esp + 0x88]
push ecx
mov ebx, eax
call fcn.00415620
mov ecx, dword [esp + 0x50]
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
xor ebx, ebx
cmp dword [eax + 4], ebx
je 0x46b44b
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x46b425
cmp dword [ecx - 8], ebx
jl 0x46b8c2
mov dword [ecx - 0xc], ebx
mov edx, dword [esp + 0x50]
mov word [edx], bx
jmp 0x46b44b
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b43b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x38]
push ecx
push str.Channel_d
lea edi, [esp + 0x20]
mov dword [esp + 0x5c], ebx
call fcn.00401250
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
add esp, 8
push 0x208
lea edx, [esp + 0xa8]
push edx
push str.IndexName
mov ecx, esi
mov edx, edi
call fcn.0041b420
cmp eax, ebx
je 0x46b7a9
lea eax, [esp + 0xa4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46b4a0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xa4]
mov ebx, eax
push ecx
lea eax, [esp + 0x44]
call fcn.00401750
push 0x208
lea edx, [esp + 0xa8]
push edx
push str.Method
mov ecx, esi
mov edx, edi
call fcn.0041b420
test eax, eax
je 0x46b7a9
lea eax, [esp + 0xa4]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b4f0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xa4]
mov ebx, eax
push ecx
lea eax, [esp + 0x4c]
call fcn.00401750
push 0x208
lea edx, [esp + 0xa8]
push edx
push str.CheckFile
mov ecx, esi
mov edx, edi
call fcn.0041b420
test eax, eax
je 0x46b573
lea eax, [esp + 0xa4]
lea edx, [eax + 2]
jmp 0x46b540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b540
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xa4]
mov ebx, eax
push ecx
lea eax, [esp + 0x50]
call fcn.00401750
push 4
push str..kid
lea edx, [esp + 0x54]
push edx
call fcn.00407aa0
push str.TryType
mov ecx, esi
mov edx, edi
call fcn.0041b290
mov edi, dword [esp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
cmp edi, eax
mov ebx, eax
jbe 0x46b5a0
call fcn.0049445b
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, eax
lea esi, [esp + 0x20]
jbe 0x46b5ad
call fcn.0049445b
push ebx
push esi
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x90]
push eax
lea ebx, [esp + 0x34]
call fcn.00415620
xor ebp, ebp
push ebp
push str.Server_d
lea edi, [esp + 0x24]
call fcn.00401250
mov edx, dword [esp + 0x24]
add esp, 8
push 0x208
lea ecx, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x40]
call fcn.0041b420
test eax, eax
je 0x46b779
cmp dword [esp + 0x54], 0
je 0x46b6ef
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xa8]
call fcn.00401400
mov bl, 5
mov byte [esp + 0x4c4], bl
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 0
jl 0x46b64d
push str.http:__
push eax
call fcn.00495aca
add esp, 8
test eax, eax
je 0x46b64d
sub eax, dword [esp + 0x3c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x46b6b5
lea ecx, [esp + 0xa4]
lea edi, [esp + 0x88]
call fcn.0040c930
mov esi, 8
mov byte [esp + 0x4c4], 6
cmp dword [eax + 0x18], esi
jb 0x46b677
mov eax, dword [eax + 4]
jmp 0x46b67a
add eax, 4
mov ecx, dword [0x4e479c]
push ecx
push eax
push str._s_d_
lea edi, [esp + 0x3c]
call fcn.00401250
add esp, 0xc
mov byte [esp + 0x4c4], bl
cmp dword [esp + 0xa0], esi
jb 0x46b6d4
mov edx, dword [esp + 0x8c]
push edx
call fcn.004935b1
add esp, 4
jmp 0x46b6d4
mov eax, dword [0x4e479c]
push eax
lea ecx, [esp + 0xa8]
push ecx
push str._s_d_
lea edi, [esp + 0x3c]
call fcn.00401250
add esp, 0xc
lea ebx, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.00415010
mov byte [esp + 0x4c4], 4
mov eax, dword [esp + 0x3c]
jmp 0x46b721
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0xa8]
call fcn.00401400
lea ebx, [esp + 0x68]
lea esi, [esp + 0x20]
mov byte [esp + 0x4c4], 7
call fcn.00415010
mov byte [esp + 0x4c4], 4
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b73d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
push ebp
push str.Server_d
lea edi, [esp + 0x24]
call fcn.00401250
mov edx, dword [esp + 0x24]
add esp, 8
push 0x208
lea ecx, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x40]
call fcn.0041b420
test eax, eax
jne 0x46b601
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46b7a9
mov ecx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
je 0x46b7a9
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.004300f0
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x40]
push ecx
call fcn.0046ca90
mov eax, dword [esp + 0x38]
add eax, 1
xor ebx, ebx
cmp eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
jl 0x46b270
mov byte [esp + 0x4c4], 3
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x46b80a
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x46b7fd
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b7f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x46b7d8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004935b1
add esp, 4
mov byte [esp + 0x4c4], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b83e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c4], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b866
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b88d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x40]
call fcn.0046b9a0
xor eax, eax
mov ecx, dword [esp + 0x4bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.004935b6
add esp, 0x4b4
ret 4
push 0x80070057
call fcn.004013e0
int3