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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5576
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ecx, dword [esi + 0x13c]
cmp ecx, ebp
je 0x49b622
mov eax, dword [esi + 0x140]
cmp eax, ebp
jle 0x49b1a6
dec eax
mov dword [esi + 0x140], eax
jmp 0x49b622
push ebp
push ebp
call fcn.00495b90
mov ebx, eax
cmp ebx, ebp
jg 0x49b1f1
mov ecx, dword [esi + 0xcc]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 0x14], ebp
je 0x49b1e0
mov ecx, dword [esi + 0x13c]
call fcn.00495bc0
test eax, eax
jne 0x49b1e0
mov ecx, dword [esi + 0x14]
push ebp
push ebp
push 0x580
mov edx, dword [ecx]
call dword [edx]
mov dword [esi + 0x160], ebp
mov dword [0x525c70], ebp
jmp 0x49b622
push ebx
call fcn.004de48f
add esp, 4
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x49b622
mov ecx, dword [esi + 0x13c]
push edi
push ebx
push eax
call fcn.00495b90
lea edi, [esi + 0x158]
xor ecx, ecx
mov dword [esi + 0x154], ecx
mov dword [edi], ebp
mov eax, dword [0x5258e4]
lea ebp, [esi + 0x154]
cmp eax, ecx
jne 0x49b254
mov ecx, dword [esi + 0x13c]
push edi
push ebp
call fcn.00495e80
mov eax, dword [ebp]
mov dword [0x525838], eax
mov ecx, dword [edi]
mov dword [0x52583c], ecx
xor ecx, ecx
jmp 0x49b25f
mov dword [ebp], eax
mov edx, dword [0x5258e8]
mov dword [edi], edx
mov al, byte [esp + 0x37]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x20], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x298], ecx
mov dword [0x525c70], 1
jmp 0x49b294
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov edx, dword [ebx + 0x40]
cmp edx, dword [ebx + 0x38]
je 0x49b2a6
mov dword [0x525c70], ecx
lea edi, [ebx + 0x5f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
mov ebp, ecx
mov ecx, dword [esp + 0x28]
push eax
push 1
push ecx
lea ecx, [esp + 0x2c]
add ebp, 0x60
call fcn.004d90c0
mov eax, dword [0x525de0]
test eax, eax
je 0x49b406
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov eax, dword [edx + 0x38]
push eax
call edi
test eax, eax
jbe 0x49b406
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x34]
cmp ecx, edx
jne 0x49b406
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x38]
cmp edx, ecx
jne 0x49b406
mov eax, dword [eax + 0x28]
push eax
call edi
mov ecx, dword [0x50d0e0]
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 0x14]
push 0x51a098
push edx
mov byte [esp + 0x2a4], 1
call fcn.004074f0
mov eax, dword [esi + 0x164]
lea edi, [esi + 0x164]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x49b362
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.004df682
add esp, 8
test eax, eax
jne 0x49b367
or ebx, 0xffffffff
jmp 0x49b371
sub eax, dword [edi]
sar eax, 1
mov ebx, eax
test ebx, ebx
jge 0x49b381
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00407f00
cmp dword [esi + 0x160], 0xa
jle 0x49b3cb
test ebx, ebx
jge 0x49b3cb
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x14]
sub eax, ebp
test eax, eax
mov eax, ecx
jg 0x49b3a5
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49b3cb
xor ecx, ecx
mov cl, byte [eax + 0x57]
cmp ecx, 2
jne 0x49b3cb
mov ecx, dword [eax + 0x28]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 0x13c]
push eax
call fcn.00495f90
mov eax, dword [esp + 0x10]
mov ecx, dword [0x50d0e4]
mov byte [esp + 0x298], 0
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x49b402
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49b402
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add ebx, ebp
sub eax, ebp
mov dword [esp + 0x1c], ebx
test eax, eax
mov dword [esp + 0x14], eax
jg 0x49b292
mov eax, dword [esi + 0x160]
cmp eax, 0xb
jge 0x49b430
inc eax
mov dword [esi + 0x160], eax
mov eax, dword [esi + 0xcc]
push 0
push 0
push 0x1004
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x49b5cb
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x88]
mov edx, dword [esi + 0xcc]
rep stosd dword es:[edi], eax
mov edx, dword [edx + 4]
mov ecx, 9
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x88]
push ecx
push ebx
push 0x1073
push edx
mov dword [esp + 0x50], 2
mov dword [esp + 0x60], 0x103
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49b5b6
lea eax, [esp + 0x88]
push str.taskid:
push eax
call fcn.004df682
add esp, 8
test eax, eax
je 0x49b5b6
lea ecx, [esp + 0x96]
push ecx
call fcn.004debd7
mov edi, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x2c]
add esp, 4
cmp edi, eax
mov dword [esp + 0x18], eax
je 0x49b516
mov ebp, dword [edi]
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
cmp ebx, eax
je 0x49b63a
mov eax, dword [esp + 0x18]
add edi, 4
cmp edi, eax
jne 0x49b4f7
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea ebp, [eax + 1]
cmp ebp, ebx
jge 0x49b5a1
mov edx, dword [esi + 0xcc]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x60], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x88]
lea eax, [esp + 0x60]
mov dword [esp + 0x74], ecx
mov ecx, dword [edx + 4]
push eax
push ebp
push 0x1073
push ecx
mov dword [esp + 0x78], 2
mov dword [esp + 0x88], 0x103
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49b59c
lea edx, [esp + 0x88]
push str.tindex:
push edx
call fcn.004df682
add esp, 8
test eax, eax
je 0x49b5a1
mov ecx, dword [esi + 0xcc]
push ebp
mov eax, dword [ecx]
call dword [eax + 4]
dec ebx
cmp ebp, ebx
jl 0x49b525
mov ecx, dword [esi + 0xcc]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
dec ebx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x49b45b
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp ecx, ebx
mov edi, ecx
je 0x49b5ee
mov ecx, dword [edi]
push ecx
mov ecx, esi
call fcn.0049b680
add edi, 4
cmp edi, ebx
jne 0x49b5d9
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
pop edi
cmp eax, eax
mov edx, eax
je 0x49b607
mov esi, dword [eax]
add eax, 4
mov dword [ecx], esi
add ecx, 4
cmp eax, edx
jne 0x49b5f9
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
push edx
call fcn.004de3a6
mov eax, dword [esp + 0x24]
push eax
call fcn.004de3a6
add esp, 8
mov ecx, dword [esp + 0x28c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret
push ebp
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, esi
push ebx
call fcn.0049b8c0
push ebp
push ebx
mov ecx, esi
call fcn.0049bc50
mov ecx, dword [esp + 0x28]
lea eax, [edi + 4]
cmp eax, ecx
je 0x49b66e
sub edi, eax
mov edx, dword [eax]
mov dword [edi + eax], edx
add eax, 4
cmp eax, ecx
jne 0x49b65e
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffffc
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ecx
jmp 0x49b5b6