Function at 0x489da0
Capabilities:
Check if file exists
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a3e40
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x500], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x518]
mov dword fs:[0], eax
mov eax, dword [esp + 0x530]
mov ebx, dword [esp + 0x544]
mov edi, ecx
mov dword [esp + 0x9c], edi
mov esi, edx
mov dword [esp + 0x94], eax
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x18]
xor ebp, ebp
push ecx
mov dword [esp + 0x524], ebp
call fcn.0048e090
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x524], 1
call fcn.0048dda0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x88], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
push edi
mov ecx, ebx
lea edx, [esp + 0x34]
mov byte [esp + 0x524], 3
call fcn.00483650
test eax, eax
jne 0x489f55
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x489ea5
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ebp
cmp eax, ebp
je 0x489ebc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x54]
cmp eax, ebp
je 0x489eda
mov edi, dword [esp + 0x58]
call fcn.004075a0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
call fcn.004f6734
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ebp
je 0x489f04
push eax
call fcn.004f6734
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004f6734
mov dword [esp + 0x524], 0xffffffff
mov eax, dword [esp + 0x52c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x258
jmp 0x48abc6
cmp dword [esp + 0x52c], ebp
je 0x48a01a
mov ecx, dword [esp + 0x528]
push 0x5c
push ecx
call fcn.004f7f30
add esp, 8
cmp eax, ebp
jne 0x489f7d
or eax, 0xffffffff
jmp 0x489f86
sub eax, dword [esp + 0x528]
sar eax, 1
inc eax
lea ecx, [esp + 0x60]
lea edx, [esp + 0x528]
call fcn.004098d0
push 1
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x534], 4
push esi
mov esi, dword [esp + 0x78]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x8c], esp
mov ebx, esp
call fcn.004073f0
add eax, 0x10
push edi
mov dword [ebx], eax
call fcn.0048abf0
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
sub eax, edi
and eax, 0xfffffffc
cmp eax, 4
jne 0x489ff7
lea eax, [esp + 0x528]
call fcn.00406fe0
mov byte [esp + 0x520], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a055
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x48a055
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x53c]
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x8c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.0048abf0
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jge 0x48a0e7
lea esi, [esp + 0x30]
call fcn.0047f7f0
lea esi, [esp + 0x48]
call fcn.00406cb0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x48a096
push eax
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004f6734
mov dword [esp + 0x524], 0xffffffff
mov eax, dword [esp + 0x52c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a0dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x25f
jmp 0x48abc6
cmp eax, ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x14], ebp
jle 0x48a8e9
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x48a2da
cmp eax, 2
je 0x48a2da
cmp eax, 4
jne 0x48a74d
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x14]
sar ecx, 2
cmp ebp, ecx
jb 0x48a138
call fcn.004f825e
mov edx, dword [esp + 0x54]
mov eax, dword [edx + ebp*4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a74d
mov edi, ebp
lea esi, [esp + 0x18]
call fcn.0048e0f0
mov ecx, eax
lea eax, [esp + 0x68]
add ecx, 0x230
push eax
call fcn.004066b0
lea ecx, [esp + 0x68]
push ecx
mov eax, 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x524], 6
call fcn.0042ca60
push eax
mov ecx, 0x5d9638
call fcn.0047c7f0
mov bl, al
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a1bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x48a1ce
mov edx, 0x5d9638
lea edi, [esp + 0x68]
call fcn.00409860
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
lea esi, [ebp + 1]
add eax, edx
cmp esi, eax
jge 0x48a2c9
mov ebx, dword [esp + 0x14]
mov ebp, esi
imul ebp, ebp, 0x640
cmp esi, eax
jb 0x48a207
call fcn.004f825e
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x78]
lea ecx, [ecx + ebp + 0x230]
push edx
call fcn.004066b0
mov eax, dword [esp + 0x68]
test eax, eax
je 0x48a27d
mov ecx, dword [esp + 0x78]
cmp dword [ecx - 0xc], 0
jl 0x48a27d
push eax
push ecx
call fcn.004f7373
add esp, 8
test eax, eax
je 0x48a27d
sub eax, dword [esp + 0x78]
sar eax, 1
jne 0x48a27d
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
sub ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x48a26c
call fcn.004f825e
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + ebp + 0x18]
sub dword [esp + 0x40], ecx
mov edx, dword [edi + ebp + 0x1c]
sbb dword [esp + 0x44], edx
inc ebx
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a29d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebp, 0x640
cmp esi, eax
jl 0x48a200
mov dword [esp + 0x14], ebx
mov byte [esp + 0x520], 3
mov eax, dword [esp + 0x68]
jmp 0x48a885
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x14]
sar ecx, 2
cmp edi, ecx
jb 0x48a2f2
call fcn.004f825e
mov edx, dword [esp + 0x54]
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a74d
xor ebx, ebx
cmp dword [esp + 0x53c], ebx
je 0x48a74d
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp ebp, ebx
ja 0x48a32b
cmp esi, ebx
jbe 0x48a4a7
cmp dword [esp + 0x534], ebx
je 0x48a4a7
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push ebx
push 0x64
push eax
push ecx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
call fcn.005034c0
mov dword [esp + 0xb8], eax
mov eax, edx
and eax, 0x80000000
and edx, 0x7fffffff
mov dword [esp + 0xb4], eax
mov dword [esp + 0xbc], edx
fild qword [esp + 0xb8]
mov dword [esp + 0xb0], ebx
fild qword [esp + 0xb0]
mov eax, ebp
mov ecx, ebp
and eax, 0x7fffffff
fchs
and ecx, 0x80000000
faddp st(1)
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], esi
fild qword [esp + 0xc0]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], ebx
fild qword [esp + 0xa8]
fchs
faddp st(1)
fdivp st(1)
fst qword [esp + 0xdc]
fld qword [0x6005b8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x48a412
fstp qword [esp + 0xdc]
jmp 0x48a414
fstp st(0)
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x54]
sar edx, 2
cmp edi, edx
jb 0x48a428
call fcn.004f825e
mov eax, dword [esp + 0x54]
mov edx, dword [eax + edi*4]
lea ecx, [esp + 0xfc]
test ecx, ecx
je 0x48a441
mov edi, ecx
call fcn.0048b620
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0xf0], eax
sub esp, 0x228
mov dword [esp + 0x30c], esi
mov dword [esp + 0x31c], ecx
mov edi, esp
lea eax, [esp + 0x75c]
mov dword [esp + 0x310], ebp
mov dword [esp + 0x320], edx
mov ecx, 0x8a
lea esi, [esp + 0x304]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0048dd70
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov edx, ecx
sub edx, edi
sar edx, 2
cmp dword [esp + 0x14], edx
jb 0x48a4c9
call fcn.004f825e
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
mov ebp, dword [edi + eax*4]
mov eax, 0x51eb851f
imul edx
sar edx, 9
mov esi, edx
sub ecx, edi
shr esi, 0x1f
sar ecx, 2
add esi, edx
cmp dword [esp + 0x14], ecx
jb 0x48a4fd
call fcn.004f825e
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov edi, dword [edi + ecx*4]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov dword [esp + 0x304], eax
mov dword [esp + 0x308], esi
cmp edi, ebx
je 0x48a53f
lea edx, [esp + 0x30c]
mov eax, edi
sub edx, edi
jmp 0x48a530
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x48a530
mov edx, dword [esp + 0x540]
sub esp, 0x210
mov edi, esp
mov ecx, 0x84
lea esi, [esp + 0x514]
push edx
rep movsd dword es:[edi], dword [esi]
call dword [esp + 0x750]
mov esi, eax
add esp, 0x214
lea eax, [esp + 0x30]
mov dword [esp + 0x88], esi
call fcn.004a9da4
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
push eax
lea edx, [esp + 0x34]
call fcn.00483650
cmp esi, 2
je 0x48a5a2
cmp esi, 4
jne 0x48a74d
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x14], ecx
jb 0x48a5c6
call fcn.004f825e
mov esi, dword [esp + 0x14]
mov eax, esi
imul eax, eax, 0x640
add eax, dword [esp + 0x24]
lea edx, [esp + 0x6c]
lea ecx, [eax + 0x230]
push edx
call fcn.004066b0
lea eax, [esp + 0x6c]
push eax
mov eax, 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x524], 5
call fcn.0042ca60
push eax
mov ecx, 0x5d9638
call fcn.0047c7f0
mov bl, al
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a631
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x48a643
mov edx, 0x5d9638
lea edi, [esp + 0x6c]
call fcn.00409860
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
jge 0x48a73c
mov ebx, dword [esp + 0x14]
mov ebp, esi
imul ebp, ebp, 0x640
cmp esi, eax
jb 0x48a67a
call fcn.004f825e
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x74]
lea ecx, [ecx + ebp + 0x230]
push edx
call fcn.004066b0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x48a6f0
mov ecx, dword [esp + 0x74]
cmp dword [ecx - 0xc], 0
jl 0x48a6f0
push eax
push ecx
call fcn.004f7373
add esp, 8
test eax, eax
je 0x48a6f0
sub eax, dword [esp + 0x74]
sar eax, 1
jne 0x48a6f0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
sub ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x48a6df
call fcn.004f825e
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + ebp + 0x18]
sub dword [esp + 0x40], ecx
mov edx, dword [edi + ebp + 0x1c]
sbb dword [esp + 0x44], edx
inc ebx
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebp, 0x640
cmp esi, eax
jl 0x48a673
mov dword [esp + 0x14], ebx
mov byte [esp + 0x520], 3
mov eax, dword [esp + 0x6c]
jmp 0x48a885
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
mov dword [esp + 0x84], 1
call eax
add eax, 0x10
mov dword [esp + 0x64], eax
sub esp, 8
mov eax, esp
mov byte [esp + 0x528], 7
mov dword [eax], 0x48fce0
lea ecx, [esp + 0x53c]
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x94]
mov dword [esp + 0x68], esp
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
sub ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea ebx, [esp + 0x74]
cmp dword [esp + 0x24], ecx
jb 0x48a7d1
call fcn.004f825e
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov ebp, ecx
imul ebp, ebp, 0x640
lea edx, [edi + ebp + 0xc]
sub esi, edi
push edx
mov eax, 0x51eb851f
imul esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x48a802
call fcn.004f825e
mov edi, dword [esp + 0x38]
lea ecx, [edi + ebp + 0x230]
push ecx
mov edx, esp
mov dword [esp + 0x78], esp
push edx
call fcn.004066b0
mov byte [esp + 0x538], 8
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x6c]
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x48a834
call fcn.004f825e
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [edx + ecx*4]
sub eax, 0x10
mov dword [esp + 0xb4], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
lea edx, [esp + 0x9c]
mov byte [esp + 0x540], 7
call fcn.0048b680
mov dword [esp + 0x60], eax
mov byte [esp + 0x520], 3
test eax, eax
mov eax, dword [esp + 0x64]
je 0x48a8cd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a8a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, 0x51eb851f
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x48a0fe
jmp 0x48a8e9
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a8e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x2710
lea ecx, [esp + 0xcc]
push ecx
mov ebx, 8
lea edi, [esp + 0x38]
mov dword [esp + 0xd0], 0x54495551
mov dword [esp + 0xd4], 0
call fcn.004a9eac
xor ebx, ebx
cmp dword [esp + 0x84], ebx
jne 0x48a9f9
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x48a949
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x48a960
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x48a97e
mov edi, dword [esp + 0x58]
call fcn.004075a0
mov eax, dword [esp + 0x54]
push eax
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.004f6734
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ebx
je 0x48a9a8
push eax
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004f6734
mov dword [esp + 0x524], 0xffffffff
mov eax, dword [esp + 0x52c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a9ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x25d
jmp 0x48abc6
push ecx
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx]
sub eax, 0x10
mov dword [esp + 0x9c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
call fcn.00490bb0
mov esi, eax
cmp esi, 0x25e
je 0x48aaf9
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x48aa4c
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x48aa63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x48aa81
mov edi, dword [esp + 0x58]
call fcn.004075a0
mov eax, dword [esp + 0x54]
push eax
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.004f6734
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ebx
je 0x48aaab
push eax
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004f6734
mov dword [esp + 0x524], 0xffffffff
mov eax, dword [esp + 0x52c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48aaf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x48abc6
lea esi, [esp + 0x30]
call fcn.0047f7f0
lea esi, [esp + 0x48]
call fcn.00406cb0
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x60], ebx
jne 0x48ab70
cmp eax, ebx
je 0x48ab22
push eax
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004f6734
mov dword [esp + 0x524], 0xffffffff
mov eax, dword [esp + 0x52c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48ab69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x25b
jmp 0x48abc6
cmp eax, ebx
je 0x48ab7d
push eax
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004f6734
mov dword [esp + 0x524], 0xffffffff
mov eax, dword [esp + 0x52c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48abc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x518]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x500]
xor ecx, esp
call fcn.004f673f
add esp, 0x510
ret 0x20