Function at 0x424a50
Capabilities:
Act as tcp client
Check os version
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5efa31
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x6f1550]
xor eax, esp
mov dword [esp + 0x580], eax
push ebx
push esi
push edi
mov eax, dword [0x6f1550]
xor eax, esp
push eax
lea eax, [esp + 0x598]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov byte [esp + 0x3b], al
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [eax - 0xc]
lea esi, [ebx + 0x38]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x424ad5
push edx
mov ecx, esi
call fcn.004019e0
mov esi, dword [esi]
push esi
call fcn.005c3593
add esp, 4
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
mov ecx, ebx
mov byte [esp + 0x32], 0
call fcn.00423760
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x424b15
cmp byte [eax], 0
jne 0x424b4b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x424b20
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x424b4b
lea eax, [esp + 0x3b]
push eax
call fcn.005c3593
push esi
mov dword [esp + 0x24], eax
call fcn.005c3593
add esp, 8
jmp 0x424b54
push esi
call fcn.005c3593
add esp, 4
push esi
mov edi, eax
call fcn.005bfb1a
add esp, 4
cmp dword [ebx + 0x28], 0
mov dword [esp + 0x20], edi
je 0x424b94
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx - 0xc]
lea esi, [ebx + 0x10]
mov eax, ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x424b90
push edx
mov ecx, esi
call fcn.004019e0
mov esi, dword [esi]
jmp 0x424b98
mov esi, dword [esp + 0x24]
cmp dword [ebx + 0x28], 0
je 0x424ba3
mov edi, dword [ebx + 0xc]
jmp 0x424ba7
mov edi, dword [esp + 0x50]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea edx, [esp + 0x68]
push edx
push 0x8004667e
push eax
mov dword [ebx + 0x58], eax
mov dword [esp + 0x74], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp byte [ebx + 0x44], 0
mov word [esp + 0x17c], 2
jne 0x424ce2
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x180], eax
jne 0x424c15
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x424c07
mov byte [ebx + 0x44], 1
jmp 0x424c15
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x180], edx
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx + 0x58]
mov word [esp + 0x17e], ax
push 0x10
lea eax, [esp + 0x180]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x424c4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x424c4e
mov byte [ebx + 0x44], 1
xor edi, edi
xor esi, esi
cmp dword [ebx + 0x40], edi
je 0x424e2f
jmp 0x424c60
mov eax, dword [ebx + 0x58]
mov ecx, 1
lea edx, [esp + 0x6c]
push edx
push edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x84], eax
push edi
add eax, 1
push eax
mov dword [esp + 0x84], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jg 0x424cae
add esi, 1
cmp esi, 0xa
jg 0x424e09
cmp dword [ebx + 0x40], edi
jne 0x424c60
jmp 0x424e2f
mov ecx, dword [ebx + 0x58]
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x64]
push eax
push 0x1007
push 0xffff
push ecx
mov dword [esp + 0x78], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [esp + 0x60], edi
je 0x424e2f
mov byte [ebx + 0x44], 1
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push esi
push esi
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
cmp dword [ebx + 0x40], edi
je 0x42587b
cmp byte [ebx + 0x44], 0
jne 0x42587b
mov ecx, ebx
call fcn.00423470
test eax, eax
jne 0x424d47
lea esi, [ebx + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.004234a0
test eax, eax
jbe 0x425763
cmp byte [ebx + 0x44], 0
jne 0x425763
mov ecx, ebx
call fcn.00423560
test eax, eax
je 0x42552b
mov ecx, ebx
call fcn.004234a0
lea edi, [ebx + 0x60]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x98]
sub eax, dword [ebx + 0x94]
cmp esi, eax
jb 0x424d94
mov esi, eax
cmp esi, 0x10000
jle 0x424da1
mov esi, 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 0x48]
add edx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x58]
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x425437
cdq
add dword [esp + 0x44], eax
push edi
adc dword [esp + 0x4c], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x94]
add eax, esi
xor edx, edx
div dword [ebx + 0x98]
push edi
mov dword [ebx + 0x94], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], eax
jmp 0x4255ee
mov byte [ebx + 0x44], 1
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push edi
push edi
push 0x8007
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [ebx + 0x44], 0
jne 0x424ce2
mov eax, dword [esp + 0x30]
cmp eax, edi
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
je 0x424e63
cmp ecx, edi
je 0x424e63
push str.Authorization
push ecx
push eax
mov ecx, ebx
call fcn.00423680
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x28], edi
je 0x424f85
call fcn.005a2e2e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x42586c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov dword [esp + 0x5a0], 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push str.http:___s:_d__s
push ecx
call fcn.0040ada0
mov esi, dword [esp + 0x54]
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
add esp, 0x14
or eax, ecx
jge 0x424ee2
push edx
lea ecx, [esp + 0x44]
call fcn.004019e0
mov esi, dword [esp + 0x40]
push esi
call fcn.005c3593
mov edx, dword [ebx + 0x20]
mov edx, dword [edx - 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x20]
lea edi, [ebx + 0x20]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
add esp, 4
or eax, ecx
jge 0x424f17
push edx
mov ecx, edi
call fcn.004019e0
mov eax, dword [edi]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx - 0xc]
mov dword [esp + 0x28], eax
lea edi, [ebx + 0x24]
mov eax, ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x424f44
push edx
mov ecx, edi
call fcn.004019e0
mov edx, dword [esp + 0x28]
mov edi, dword [edi]
push str.Proxy_Authorization
push edx
push edi
mov ecx, ebx
call fcn.00423680
mov dword [esp + 0x28], eax
mov dword [esp + 0x5a0], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424fd8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x424fd8
push 0x800
call fcn.005bfbf7
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x34], edi
je 0x42587b
mov ecx, dword [esp + 0x1c]
mov word [edi], 0x2f
mov esi, ecx
jmp 0x424fb0
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x424fb0
sub ecx, esi
mov edx, ecx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x424fc0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x34]
push 0x617248
push edi
call fcn.005c1860
add esp, 8
test eax, eax
jne 0x425058
mov esi, dword [0x6f85f8]
mov eax, dword [esi + 0x2a4]
mov ecx, dword [esi + 0x2a4]
mov ecx, dword [ecx - 0xc]
add esi, 0x2a4
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
jge 0x425025
push ecx
mov ecx, esi
call fcn.004019e0
mov eax, dword [esi]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425030
sub eax, esi
add edi, 0xffffffff
mov edi, edi
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x425040
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x800
call fcn.005bfbf7
mov edi, eax
add esp, 4
test edi, edi
je 0x42587b
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x42507c
mov esi, 0x612ba8
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x425089
mov edx, 0x612ba8
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [ecx]
test ecx, ecx
je 0x4250a0
mov eax, 1
jg 0x4250a2
or eax, 0xffffffff
jmp 0x4250a2
xor eax, eax
test eax, eax
mov eax, str.NSPlayer
je 0x4250b0
mov eax, str.Novasoft_NetPlayer
mov ecx, dword [esp + 0x48]
push esi
push edx
mov esi, dword [esp + 0x3c]
xor edx, edx
cmp dword [ebx + 0xa0], edx
setne dl
push edx
mov edx, dword [esp + 0x50]
push ecx
push edx
push 0x617224
push eax
mov eax, dword [esp + 0x40]
push eax
push esi
push str.GET__s_HTTP_1.0_r_nHost:__s_r_nConnection:_Close_r_nUser_Agent:__s__s_r_nRange:_bytes_I64d__r_nFirst:_d_r_n_s_s_r_n_r_n
push edi
call fcn.005c18e6
push esi
call fcn.005bfb1a
add esp, 0x30
cmp dword [esp + 0x28], 0
je 0x425100
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005bfb1a
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x425111
push eax
call fcn.005bfb1a
add esp, 4
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425116
push 0
sub eax, edx
mov edx, dword [ebx + 0x58]
push eax
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
push edi
call fcn.005bfb1a
add esp, 4
cmp dword [ebx + 0x40], 0
je 0x4253d1
cmp byte [ebx + 0x44], 0
jne 0x4252ac
mov ecx, ebx
call fcn.00423560
test eax, eax
je 0x425248
push 0x400
lea eax, [esp + 0x190]
push eax
mov ecx, ebx
call fcn.004238c0
cmp eax, 0xffffffff
je 0x425244
lea ecx, [esp + 0x18c]
push 0x20
push ecx
call fcn.005c17a0
mov esi, eax
add esp, 8
test esi, esi
je 0x425248
push esi
call fcn.005c19ad
mov dword [ebx + 0xac], eax
mov al, byte [esi + 1]
add esp, 4
cmp al, 0x32
je 0x4252ac
cmp al, 0x33
jne 0x42526d
cmp byte [esi + 2], 0x30
jne 0x42526d
cmp byte [esi + 3], 0x32
jne 0x42526d
cmp dword [ebx + 0x40], 0
je 0x42525c
mov esi, dword [esp + 0x20]
mov ecx, ebx
call fcn.00423560
test eax, eax
je 0x42523c
push 0x400
lea edx, [esp + 0x190]
push edx
mov ecx, ebx
call fcn.004238c0
cmp eax, 0xffffffff
je 0x425254
test eax, eax
je 0x425258
push 9
lea eax, [esp + 0x190]
push str.Location:
push eax
call fcn.005c19b2
add esp, 0xc
test eax, eax
jne 0x42523c
push esi
call fcn.005bfb1a
lea ecx, [esp + 0x19a]
push ecx
call fcn.005c3593
add esp, 8
mov esi, eax
push esi
lea ecx, [ebx + 0x38]
call fcn.00401e80
cmp dword [ebx + 0x40], 0
jne 0x4251d8
jmp 0x425258
mov byte [ebx + 0x44], 1
cmp dword [ebx + 0x40], 0
jne 0x425142
jmp 0x4252ac
mov byte [ebx + 0x44], 1
mov dword [esp + 0x20], esi
mov dword [ebx + 0xa0], 1
mov byte [esp + 0x1a], 1
jmp 0x4252ac
cmp al, 0x34
jne 0x4252ac
cmp byte [esi + 2], 0x30
jne 0x4252ac
cmp byte [esi + 3], 0x33
jne 0x4252ac
mov dword [ebx + 0x40], 0
mov byte [ebx + 0x44], 1
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8007
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebx + 0x40], 0
je 0x4253d1
jmp 0x4252c0
cmp byte [esp + 0x1a], 0
jne 0x4253dc
mov ecx, ebx
call fcn.00423560
test eax, eax
je 0x4253c2
push 0x400
lea edx, [esp + 0x190]
push edx
mov ecx, ebx
call fcn.004238c0
cmp eax, 0xffffffff
je 0x424cde
test eax, eax
je 0x424ce2
push 0xe
lea eax, [esp + 0x190]
push str.Content_Length:
push eax
call fcn.005c19b2
add esp, 0xc
test eax, eax
jne 0x425397
xor ecx, ecx
mov dword [esp + 0x14], 1
xor edi, edi
lea esi, [esp + 0x19b]
lea ecx, [ecx]
mov al, byte [esi]
cmp al, 0x20
je 0x42533a
cmp al, 9
jne 0x42533f
add esi, 1
jmp 0x425330
mov al, byte [esi]
cmp al, 0x2d
jne 0x42534d
mov dword [esp + 0x14], 0xffffffff
cmp al, 0x30
jl 0x42537b
cmp byte [esi], 0x39
jg 0x42537b
push 0
push 0xa
push edi
push ecx
call fcn.005bf960
mov ecx, eax
movsx eax, byte [esi]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
add ecx, 0xffffffd0
adc edi, 0xffffffff
add esi, 1
cmp byte [esi], 0x30
jge 0x425351
mov eax, dword [esp + 0x14]
push edi
cdq
push ecx
push edx
push eax
call fcn.005bf960
add eax, dword [ebx + 0x30]
adc edx, dword [ebx + 0x34]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jmp 0x4253c2
push 0xd
lea edx, [esp + 0x190]
push 0x617188
push edx
call fcn.005c19b2
add esp, 0xc
test eax, eax
jne 0x4253c2
lea eax, [esp + 0x19a]
push eax
lea ecx, [ebx + 0x14]
call fcn.00401e80
cmp dword [ebx + 0x40], 0
jne 0x4252c0
jmp 0x424ce2
cmp byte [esp + 0x1a], 0
je 0x424ce2
mov ecx, dword [ebx + 0x58]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x30]
push edx
call fcn.005bfb1a
mov eax, dword [esp + 0x30]
xor esi, esi
push eax
mov dword [esp + 0x38], esi
call fcn.005bfb1a
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x38], esi
call fcn.005bfb1a
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x34], esi
call fcn.005bfb1a
add esp, 0x10
cmp byte [esp + 0x1a], 0
mov dword [esp + 0x1c], esi
je 0x424ce2
mov esi, dword [esp + 0x20]
jmp 0x424ae2
mov ecx, dword [ebx + 0x1c]
cmp ecx, dword [esp + 0x48]
ja 0x425473
jb 0x42544b
mov edx, dword [ebx + 0x18]
cmp edx, dword [esp + 0x44]
ja 0x425473
cmp byte [ebx + 0x45], 0
mov byte [ebx + 0x44], 1
je 0x425742
lea esi, [ebx + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4255ee
mov esi, dword [esp + 0x14]
add esi, 1
mov dword [esp + 0x14], esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xa
ja 0x4254a9
cmp eax, 0x2746
je 0x4254a9
cmp eax, 0x274d
je 0x4254a9
cmp eax, 0x2748
je 0x4254a9
cmp eax, 0x2751
jne 0x4255ee
mov eax, dword [ebx + 0x58]
xor esi, esi
push esi
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebx + 0x58]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4254da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4254da
mov edx, dword [ebx + 0x58]
push edx
call edi
mov eax, dword [esp + 0x30]
push eax
call fcn.005bfb1a
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x38], esi
call fcn.005bfb1a
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x38], esi
call fcn.005bfb1a
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x34], esi
call fcn.005bfb1a
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x30], esi
call fcn.005bfb1a
mov dword [esp + 0x34], esi
mov dword [ebx + 0xa0], esi
jmp 0x4255dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x34]
add ecx, 1
cmp ecx, 0x14
mov dword [esp + 0x34], ecx
ja 0x425561
cmp eax, 0x2746
je 0x425561
cmp eax, 0x274d
je 0x425561
cmp eax, 0x2748
je 0x425561
cmp eax, 0x2751
jne 0x4255ee
mov edx, dword [ebx + 0x58]
push edi
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebx + 0x58]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call esi
cmp eax, 0xffffffff
jne 0x425590
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x425590
mov ecx, dword [ebx + 0x58]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
call fcn.005bfb1a
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x38], edi
call fcn.005bfb1a
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x38], edi
call fcn.005bfb1a
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x34], edi
call fcn.005bfb1a
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x30], edi
call fcn.005bfb1a
mov dword [esp + 0x34], edi
mov dword [ebx + 0xa0], edi
add esp, 0x14
cmp dword [esp + 0x3c], 5
jl 0x425770
mov byte [ebx + 0x44], 1
cmp byte [ebx + 0x45], 0
je 0x425742
mov ecx, dword [0x6f85f8]
cmp dword [ecx + 0x234], 1
jne 0x425621
lea esi, [ebx + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x425742
cmp dword [ebx + 0x54], 0
ja 0x42567e
jb 0x425632
cmp dword [ebx + 0x50], 0x7d000
jae 0x42567e
lea esi, [ebx + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx + 8], 0
jne 0x425742
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebx + 8], 1
jmp 0x425742
mov ecx, ebx
call fcn.00423470
mov ecx, dword [ebx + 0x9c]
cmp eax, ecx
jbe 0x4256c3
lea esi, [ebx + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x28], 0
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push 0
push 0
jmp 0x425733
test ecx, ecx
jbe 0x425742
test eax, eax
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
jge 0x4256d9
fadd dword [0x613d20]
test ecx, ecx
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
jge 0x4256eb
fadd dword [0x613d20]
fdivp st(1)
fmul qword [0x617180]
fnstcw word [esp + 0x1a]
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x54], eax
fldcw word [esp + 0x54]
fistp qword [esp + 0x54]
mov esi, dword [esp + 0x54]
cmp dword [esp + 0x28], esi
fldcw word [esp + 0x1a]
je 0x425742
mov dword [esp + 0x28], esi
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push esi
push 1
mov ecx, dword [eax + 0x20]
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebx + 0x9c], 0
jne 0x424d12
mov edx, dword [ebx + 0xa4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x424d12
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x424d14
add dword [esp + 0x3c], 1
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8006
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x38]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x42585c
cmp dword [edi + 0xc], 0
jl 0x42584f
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x42584f
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4257e4
cmp eax, dword [esi]
jne 0x4257e4
mov dword [esp + 0x14], esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42581c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
test eax, eax
mov dword [esp + 0x14], eax
je 0x425876
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
add ecx, 0x10
push ecx
call fcn.005bf888
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425835
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
push 0x1388
mov dword [ebx + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x424ab0
mov edx, dword [eax - 0xc]
push edx
push eax
lea ecx, [ebx + 0x38]
call fcn.00401c00
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x424ab0
push 0x80004005
call fcn.00401480
jmp fcn.00401810
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [ebx + 0x58]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4258ba
push eax
call fcn.005bfb1a
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4258cb
push eax
call fcn.005bfb1a
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4258dc
push eax
call fcn.005bfb1a
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4258ed
push eax
call fcn.005bfb1a
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4258fe
push eax
call fcn.005bfb1a
add esp, 4
mov dword [ebx + 0xa0], 0
mov ecx, dword [esp + 0x598]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x580]
xor ecx, esp
call fcn.005bf6a4
mov esp, ebp
pop ebp
ret