Function at 0x4a9900
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5d0aa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [0x64aa84]
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x98], eax
mov ebp, ecx
call fcn.0057bbd0
mov edx, dword [ebp + 0x54]
add esp, 4
inc edx
mov dword [ebp + 0x38], eax
mov eax, edx
cmp eax, 1
mov byte [ebp], 1
mov dword [ebp + 0x54], edx
jne 0x4a997a
cmp dword [ebp + 0x20], 2
je 0x4a997a
lea eax, [esp + 0x14]
push eax
push 4
push ebp
push 0x4a78c0
push 0
push 0
mov dword [esp + 0x2c], 0
call fcn.0057c9ce
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esi, [ebp + 0x40]
push 4
push esi
call fcn.00407180
mov ecx, eax
call fcn.004844d0
mov ecx, dword [0x6613f4]
mov edi, eax
mov dword [esp + 0x20], edi
call fcn.004926a0
test edi, edi
mov ebx, eax
mov dword [esp + 0x2c], ebx
je 0x4a99b1
mov dword [esp + 0x14], 0
jmp 0x4a99c0
mov ecx, dword [0x6613f4]
call fcn.004920c0
mov dword [esp + 0x14], eax
test edi, edi
mov byte [esp + 0x13], 0
jne 0x4a9a02
mov ecx, dword [0x6613c8]
add ecx, 4
push 1
push ecx
lea ecx, [esp + 0x38]
call fcn.005789d4
mov dword [esp + 0xa0], edi
call fcn.00528830
mov byte [esp + 0x13], al
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.0057897a
mov al, byte [ebp + 1]
test al, al
jne 0x4a9a1d
test ebx, ebx
je 0x4aa07e
test dword [ebx + 0x83c], 0x20000
je 0x4a9a2a
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x4aa07e
test dword [ebx + 0x83c], 0x40000
jne 0x4aa07e
cmp dword [ebp + 0x20], 2
jne 0x4a9ac4
mov ecx, dword [0x6613f4]
call fcn.004926a0
mov esi, eax
test esi, esi
jne 0x4a9a60
xor al, al
jmp 0x4aa0b8
push 0x804
call fcn.005abebb
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0xa0], 4
xor eax, eax
test edi, edi
je 0x4a9aad
mov ax, word [esi + 0x12]
mov edx, dword [ebp + 0x1c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esi + 0x82c]
xor edx, edx
mov dx, word [ebp + 0x64]
push eax
mov eax, dword [ebp + 0x60]
push ecx
mov ecx, edi
push edx
push eax
call fcn.00408a90
mov dword [esp + 0xa0], 0xffffffff
mov ecx, eax
call fcn.004072e0
jmp 0x4aa0b6
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.00402dc0
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x30]
push ecx
call fcn.004e40e0
add esp, 0xc
mov dword [esp + 0xa0], 6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
call fcn.00401b20
mov byte [esp + 0xa0], 7
lea edx, [esp + 0x18]
push edx
push 0x5e68e0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call fcn.00426980
mov byte [esp + 0xa0], 8
push eax
lea ecx, [esp + 0x20]
call fcn.00405540
mov byte [esp + 0xa0], 7
lea ecx, [esp + 0x24]
call fcn.00401b70
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x4a9c47
lea esp, [esp]
xor eax, eax
test ecx, ecx
jle 0x4a9b83
test eax, eax
jl 0x4aa074
cmp eax, ecx
jg 0x4aa074
cmp word [edx + eax*2], 0x80
ja 0x4a9b8b
inc eax
cmp eax, ecx
jl 0x4a9b66
mov eax, dword [ebp + 0x7c]
or eax, 1
jmp 0x4a9b91
mov eax, dword [ebp + 0x7c]
or eax, 2
lea ecx, [esp + 0x18]
push ecx
push 0x5e68e0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x34]
mov dword [ebp + 0x7c], eax
call fcn.00426980
mov byte [esp + 0xa0], 9
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4a9c0a
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x4a9bfc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4a9bfc
push eax
call fcn.004026e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4a9bf3
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x4a9c0a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004053c0
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9c30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jg 0x4a9b60
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
xor esi, esi
xor eax, eax
test edi, edi
mov dword [esp + 0x18], esi
jne 0x4a9d16
inc eax
cmp eax, 4
mov dword [esp + 0x20], eax
jge 0x4a9d12
mov eax, dword [0x661418]
mov ecx, dword [eax + 0x8a4]
cmp dword [0x658fb8], ecx
jl 0x4a9c82
mov dword [0x658fb8], 0
push 1
add eax, 0x8b4
push eax
lea ecx, [esp + 0x38]
call fcn.005789d4
mov byte [esp + 0xa0], 0xb
mov eax, dword [0x658fb8]
mov ecx, eax
push ecx
mov ecx, dword [0x661418]
inc eax
add ecx, 0x898
mov dword [0x658fb8], eax
call fcn.005a9f8a
test eax, eax
je 0x4a9ce1
mov eax, dword [eax + 8]
mov ecx, dword [0x6613f4]
push 0
add eax, 4
push eax
call fcn.00490000
mov esi, eax
test esi, esi
je 0x4a9ce1
cmp dword [esi + 0x790], 4
je 0x4a9cfb
mov byte [esp + 0xa0], 7
lea ecx, [esp + 0x30]
call fcn.0057897a
mov eax, dword [esp + 0x20]
jmp 0x4a9c57
mov dword [esp + 0x18], esi
mov byte [esp + 0xa0], 7
lea ecx, [esp + 0x30]
call fcn.0057897a
jmp 0x4a9d16
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x54]
cmp eax, 1
je 0x4a9d2b
test dword [ebp + 0x58], 0x5000000
je 0x4a9e57
test dword [ebp + 0x58], 0x4000000
je 0x4a9d63
mov eax, dword [ebx + 0x898]
cmp eax, dword [ebp + 0x1c]
jne 0x4a9e57
push 0xe3
push 0x21
call fcn.00472810
mov ecx, dword [ebp + 0x1c]
add esp, 8
push ecx
push eax
mov ecx, ebx
call fcn.004a9430
jmp 0x4a9e57
cmp eax, 1
je 0x4a9d77
mov edx, dword [ebx + 0x898]
cmp edx, dword [ebp + 0x1c]
jne 0x4a9e57
push 0xe3
push 0x16
call fcn.00472810
add esp, 8
mov esi, eax
push 1
mov ecx, esi
call fcn.00406fc0
mov eax, dword [ebp + 0x40]
push eax
push 0x5f2bd4
push 0
push 0x661308
call fcn.004e7410
mov ecx, dword [ebx + 0x83c]
mov eax, dword [ebp + 0x40]
add esp, 0x10
and ecx, 0x10
push ecx
push eax
mov ecx, esi
call fcn.00472490
test dword [ebx + 0x83c], 0x10000
je 0x4a9e47
push 3
mov ecx, esi
call fcn.00406fc0
mov edx, dword [ebp + 0x54]
dec edx
imul edx, edx, 0xc8
push edx
mov ecx, esi
call fcn.004070a0
push 0x17
mov ecx, esi
call fcn.00406fc0
push 1
mov ecx, esi
call fcn.00406fc0
push 0
mov ecx, esi
call fcn.00406fc0
push 4
mov ecx, esi
call fcn.00406fc0
push 3
mov ecx, esi
call fcn.00406fc0
mov eax, dword [ebp + 0x54]
imul eax, eax, 0xc8
push eax
mov ecx, esi
call fcn.004070a0
push 0x18
mov ecx, esi
call fcn.00406fc0
push 1
mov ecx, esi
call fcn.00406fc0
push 0
mov ecx, esi
call fcn.00406fc0
push 4
mov ecx, esi
call fcn.00406fc0
mov ecx, dword [ebp + 0x1c]
push ecx
push esi
mov ecx, ebx
call fcn.004a9430
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4a9ee6
mov eax, dword [ebp + 0x54]
cmp eax, 1
je 0x4a9e79
test dword [ebp + 0x58], 0x2000000
je 0x4a9ee6
cmp eax, 1
jne 0x4a9ebe
push 0xe3
push 0x16
call fcn.00472810
add esp, 8
mov esi, eax
push 1
mov ecx, esi
call fcn.00406fc0
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x844]
mov eax, dword [ebp + 0x40]
and edx, 0x10
push edx
push eax
mov ecx, esi
call fcn.00472490
mov eax, dword [ebp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.004a9520
mov esi, dword [esp + 0x18]
jmp 0x4a9ee6
mov ecx, dword [ecx + 0x880]
cmp ecx, dword [ebp + 0x1c]
jne 0x4a9ee6
push 0xe3
push 0x21
call fcn.00472810
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
add esp, 8
push edx
push eax
call fcn.004a9520
mov al, byte [esp + 0x13]
test al, al
je 0x4a9fc4
lea eax, [ebp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.00402dc0
mov byte [esp + 0xa0], 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x4a9f9e
mov ecx, dword [0x6613c8]
add ecx, 4
push 1
push ecx
lea ecx, [esp + 0x44]
call fcn.005789d4
mov byte [esp + 0xa0], 0xd
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
xor eax, eax
test ecx, ecx
mov bl, 1
jle 0x4a9f63
test eax, eax
jl 0x4aa074
cmp eax, ecx
jg 0x4aa074
cmp word [edx + eax*2], 0x80
ja 0x4aa06d
inc eax
cmp eax, ecx
jl 0x4a9f42
push 0
push 0
push edx
test bl, bl
sete dl
push edx
call fcn.00537370
add esp, 0x10
test eax, eax
je 0x4a9f89
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ecx
mov ecx, eax
call fcn.005333c0
mov dword [ebp + 0x5c], eax
mov byte [esp + 0xa0], 0xc
lea ecx, [esp + 0x3c]
call fcn.0057897a
mov esi, dword [esp + 0x18]
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a9fc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x4aa036
cmp dword [esi + 0x790], 4
jne 0x4aa036
push str.RequestResource
call fcn.004a7dc0
mov esi, eax
xor eax, eax
mov ecx, 0x13
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [0x661418]
mov eax, dword [eax + 0x750]
add esp, 4
test eax, eax
jne 0x4aa001
call fcn.0057a75a
push 0
push 0x40
lea ecx, [esp + 0x5c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x40]
push ecx
push eax
call fcn.004ee5a0
add esp, 0x10
push 0x4c
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00406f10
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.004a9580
mov byte [esp + 0xa0], 6
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 0x4aa05c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0x28]
jmp 0x4aa09c
xor bl, bl
jmp 0x4a9f63
push 0x80070057
call fcn.00401180
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0xa0], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa0b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x94]
call fcn.0057981f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret