Function at 0x4d92a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 0x1c], eax
mov ebp, edx
mov esi, ecx
mov ebx, dword [edx]
mov dword [esp + 0x28], 0
mov edx, dword [ebx + 4]
call fcn.004d4de8
test eax, eax
jne 0x4d97ba
mov edx, dword [ebx + 0x40]
xor edi, edi
nop
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4d934c
mov ecx, dword [eax + 8]
cmp dword [eax], ecx
jl 0x4d934c
and dword [ebx + 4], 0xffffffbf
mov dword [eax + 0xc], 0
test edx, edx
je 0x4d9365
mov edx, dword [ebx + 0x44]
mov dword [edx + 0xc], eax
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x3c], 0
test esi, esi
jne 0x4d9316
test byte [ebx + 4], 0x80
jne 0x4d973c
test edx, edx
je 0x4d96fc
mov ecx, dword [edx + 4]
mov eax, dword [edx]
sub eax, ecx
mov dword [esp + 0x18], eax
jne 0x4d936c
xor eax, eax
add ecx, eax
mov dword [edx + 4], ecx
cmp ecx, dword [edx]
je 0x4d9418
mov edx, dword [ebx + 0x40]
mov edi, 1
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x4d92df
lea esi, [esi]
mov ecx, dword [ebx + 4]
test cl, 0x40
je 0x4d9308
test edx, edx
jne 0x4d9308
and ecx, 0xffffffbf
mov dword [ebx + 4], ecx
mov dword [eax + 0xc], 0
mov dword [ebx + 0x40], eax
mov edx, eax
jmp 0x4d92fe
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], eax
lea eax, [edx + ecx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 8]
call dword [ecx + 0x10]
test eax, eax
mov edx, dword [esp + 0x14]
jns 0x4d9734
mov eax, dword [esp + 0x28]
cmp eax, 4
je 0x4d943c
cmp eax, 0xb
je 0x4d944c
test esi, esi
je 0x4d96a4
mov edx, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x4d948c
mov dword [ebx + 0x80], 0
test edx, edx
je 0x4d93fb
mov eax, dword [edx]
dec eax
mov dword [edx], eax
test eax, eax
jg 0x4d93fb
jmp 0x4d9746
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x40], eax
xor ecx, ecx
mov eax, ebx
call fcn.004d489c
mov edx, dword [ebx + 0x40]
test edx, edx
jne 0x4d93ec
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
xor edx, edx
jmp 0x4d92d8
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x4d970c
xor ecx, ecx
mov eax, ebx
call fcn.004d489c
mov edx, dword [ebx + 0x40]
mov edi, 1
jmp 0x4d92d8
mov dword [esp + 0x28], 0
mov edx, dword [ebx + 0x40]
jmp 0x4d92d8
mov eax, dword [ebx + 4]
mov edx, eax
and edx, 0x80
je 0x4d9718
mov dword [esp + 0x28], 0
test edx, edx
je 0x4d9478
test edi, edi
jne 0x4d947d
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x4d9761
test ah, 1
jne 0x4d94a4
mov eax, dword [esp + 0x28]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x84], edx
test edx, edx
je 0x4d93fb
inc dword [edx]
jmp 0x4d93fb
mov eax, dword [ebx + 0x30]
test eax, eax
jg 0x4d947d
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x4d947d
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4d94c0
mov edx, dword [eax + 4]
cmp dword [eax], edx
jne 0x4d947d
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0x24
mov dword [esp], 0x67b74c
call fcn.00508278
mov edi, eax
mov ebx, dword [ebp]
mov edx, 1
mov eax, ebx
call fcn.004d4d94
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4d9503
mov dword [esp], eax
call fcn.004edc48
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4d9516
mov dword [esp], str.TclFlush__closed_channel:_queued_output_left
call fcn.00507f04
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4d9527
test byte [ebx + 4], 4
jne 0x4d98b1
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4d9566
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4d954f
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004d8a68
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
dec edx
mov dword [eax], edx
test edx, edx
jle 0x4d9896
mov dword [ebx + 0x80], 0
mov dword [esp + 4], 0x24
mov dword [esp], 0x67b74c
call fcn.00508278
mov esi, dword [ebp]
mov edx, dword [eax + 4]
test edx, edx
je 0x4d9920
cmp esi, edx
jne 0x4d959e
jmp 0x4d9915
mov edx, eax
test eax, eax
je 0x4d9920
mov eax, dword [edx + 0x78]
cmp esi, eax
jne 0x4d9594
mov eax, dword [esi + 0x78]
mov dword [edx + 0x78], eax
mov dword [esi + 0x78], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, 2
je 0x4d95d4
cmp edx, 3
je 0x4d95d4
cmp edx, 4
je 0x4d9933
cmp edx, 5
je 0x4d9933
mov edx, dword [eax + 8]
cmp edx, 1
je 0x4d9878
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call edx
cmp ebp, dword [ebx + 0x74]
je 0x4d9826
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x4d97c4
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4d9625
mov edx, dword [eax]
dec edx
mov dword [eax], edx
test edx, edx
jle 0x4d9956
mov dword [ebx + 0x80], 0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4d9643
mov eax, dword [ebx + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004d8a68
mov eax, esi
mov edx, dword [ebx + 0x64]
mov dword [esp], edx
mov dword [esp + 0x14], eax
call fcn.004d310c
mov esi, dword [ebp + 0xc]
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4d97e9
mov eax, dword [edi + 4]
mov dword [ebx + 0x78], eax
mov dword [edi + 4], ebx
mov dword [ebx + 0x70], esi
mov dword [esi + 0x10], 0
mov dword [ebp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], ebp
call fcn.00508de4
mov dword [esp + 4], esi
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004d8ebc
jmp 0x4d9481
mov dword [esp], eax
call fcn.00504e4c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4d93fb
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00510aa4
test eax, eax
jne 0x4d93fb
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00504e60
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004e0a9c
jmp 0x4d93fb
mov eax, dword [ebx + 4]
mov edx, eax
and edx, 0x80
jmp 0x4d9465
mov dword [ebx + 0x44], 0
jmp 0x4d9426
or al, 0x80
mov dword [ebx + 4], eax
mov eax, ebp
call fcn.004d4278
mov eax, dword [ebx + 4]
mov edx, eax
and edx, 0x80
jmp 0x4d945d
mov ecx, dword [edx + 4]
jmp 0x4d932d
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4d9781
mov eax, dword [eax + 4]
test eax, eax
je 0x4d9781
mov dword [esp], edx
call fcn.004dd020
jmp 0x4d93fb
and al, 0x7f
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x58]
mov dword [esp + 4], edx
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [eax + 0x20]
mov eax, dword [ebx + 4]
jmp 0x4d9478
mov eax, dword [edx + 4]
test eax, eax
je 0x4d97a0
cmp eax, dword [0x5dea6c]
je 0x4d97a0
mov dword [esp], eax
mov dword [esp + 0x14], edx
call fcn.004edc48
mov edx, dword [esp + 0x14]
mov dword [edx + 8], 0xffffffff
mov eax, dword [0x67b764]
mov dword [edx + 0x10], eax
mov dword [0x67b764], edx
jmp 0x4d93fb
mov eax, 0xffffffff
jmp 0x4d9481
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x4d981d
test eax, eax
je 0x4d9645
mov dword [esp], eax
mov dword [esp + 0x14], eax
call fcn.00504e4c
mov eax, dword [esp + 0x14]
jmp 0x4d9645
mov dword [ebp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], ebx
mov dword [esp + 0x14], eax
call fcn.00508de4
mov dword [esp + 4], 3
mov dword [esp], ebp
call fcn.00508de4
mov eax, dword [esp + 0x14]
jmp 0x4d9481
mov eax, dword [esp + 0x18]
jmp 0x4d9645
mov edx, dword [ebx]
test edx, edx
je 0x4d9842
mov dword [esp], edx
mov dword [esp + 0x14], eax
call fcn.004edc48
mov dword [ebx], 0
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 8]
mov dword [esp], edx
mov dword [esp + 0x14], eax
call fcn.004f93b4
mov edx, dword [ebx + 0x38]
test edx, edx
mov eax, dword [esp + 0x14]
je 0x4d95f9
mov dword [esp], edx
call fcn.004edc48
mov dword [ebx + 0x38], 0
mov eax, dword [esp + 0x14]
jmp 0x4d95f9
mov dword [esp + 8], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], edx
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [eax + 0x28]
jmp 0x4d95f0
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4d98de
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4d98de
mov dword [esp], eax
call fcn.004dd020
jmp 0x4d955c
mov byte [esp + 0x27], al
mov eax, dword [ebp + 8]
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
lea edx, [esp + 0x27]
mov dword [esp + 4], edx
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [eax + 0x10]
jmp 0x4d9527
mov edx, dword [eax + 4]
test edx, edx
je 0x4d98fb
cmp edx, dword [0x5dea6c]
je 0x4d98fb
mov dword [esp], edx
call fcn.004edc48
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], 0xffffffff
mov edx, dword [0x67b764]
mov dword [eax + 0x10], edx
mov dword [0x67b764], eax
jmp 0x4d955c
mov edx, dword [esi + 0x78]
mov dword [eax + 4], edx
jmp 0x4d95ab
mov dword [esp], str.FlushChannel:_damaged_channel_list
call fcn.00507f04
xor edx, edx
jmp 0x4d95a5
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x4d95d4
mov dword [esp + 4], 1
mov eax, dword [ebp + 4]
mov dword [esp], eax
call edx
mov eax, dword [ebp + 8]
jmp 0x4d95d4
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4d9971
mov edx, dword [edx + 4]
test edx, edx
je 0x4d9971
mov dword [esp], eax
call fcn.004dd020
jmp 0x4d961b
mov edx, dword [eax + 4]
test edx, edx
je 0x4d998e
cmp edx, dword [0x5dea6c]
je 0x4d998e
mov dword [esp], edx
call fcn.004edc48
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], 0xffffffff
mov edx, dword [0x67b764]
mov dword [eax + 0x10], edx
mov dword [0x67b764], eax
jmp 0x4d961b