Function at 0x4575f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5f2d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x45910
call fcn.004eb090
mov eax, dword [0x617560]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, edi
mov dword [ebp - 0x42838], edi
mov dword [edi + 0xa4], 1
call fcn.004591d0
xor esi, esi
lea eax, [ebp - 0x45918]
mov dword [ebp - 0x42830], esi
mov dword [ebp - 0x42834], esi
mov dword [ebp - 0x4284c], esi
mov dword [ebp - 0x4285c], esi
mov dword [ebp - 0x42874], esi
mov dword [ebp - 0x42848], esi
mov dword [ebp - 0x42858], esi
mov dword [ebp - 0x42850], esi
mov dword [ebp - 0x42860], eax
mov dword [ebp - 0x42870], esi
call fcn.0046d490
push edi
lea ecx, [edi + 0x34]
push ecx
push esi
push esi
mov ebx, eax
mov dword [ebp - 0x42854], eax
mov dword [ebp - 0x42844], ecx
call fcn.0046e000
xor ebx, ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x45771e
call fcn.004c5661
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4576d1
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x4283c], esi
push ebx
push ebx
push str.INVALID_SOCKET
mov dword [ebp - 4], ebx
call fcn.004c6a56
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4584bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4584bb
movzx ecx, word [edi + 0x18]
push ecx
mov word [ebp - 0x42828], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x1c]
push 4
mov word [ebp - 0x42826], ax
lea eax, [ebp - 0x42884]
push eax
push 0x1002
push 0xffff
push ecx
mov dword [ebp - 0x42824], edx
mov dword [ebp - 0x42884], 0x8000
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0xc]
push 0x10
lea edx, [ebp - 0x42828]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4577a3
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push ebx
push str.connect_failed
mov dword [edi + 0xc], 0xffffffff
call fcn.004c6a56
jmp 0x457c33
mov edx, dword [edi + 0x14]
lea esi, [edi + 0x14]
mov byte [ebp - 0x40014], 3
mov eax, dword [edx - 0xc]
add eax, 9
mov dword [ebp - 0x40018], eax
mov eax, edx
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x4577d2
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00405400
mov eax, dword [esi]
mov ecx, eax
mov ecx, dword [ecx - 0xc]
push ecx
push eax
lea edx, [ebp - 0x4000f]
push edx
call fcn.004f05f0
mov eax, dword [edi + 0xc]
add esp, 0xc
push eax
lea ebx, [ebp - 0x40018]
call fcn.00453460
add esp, 4
test eax, eax
je 0x457c31
mov ecx, dword [edi + 0xc]
push ecx
call fcn.004534b0
add esp, 4
test eax, eax
je 0x457c31
mov al, byte [ebp - 0x40014]
cmp al, 3
je 0x45798d
lea ecx, [ebp - 0x4282c]
movzx esi, al
call fcn.00476b40
cmp esi, 0xc
mov ebx, 1
mov dword [ebp - 4], ebx
jne 0x457976
movzx eax, byte [ebp - 0x40010]
test eax, eax
jne 0x45788f
push 0x62e
lea edx, [ebp - 0x42830]
push edx
call fcn.0041c990
push eax
lea ecx, [ebp - 0x4282c]
mov byte [ebp - 4], 2
call fcn.00404e30
lea ecx, [ebp - 0x42830]
mov byte [ebp - 4], bl
call fcn.00476b70
mov eax, dword [ebp - 0x4282c]
push 0
push 0
push eax
jmp 0x457971
cmp eax, ebx
jne 0x4578ad
push 0x62f
lea ecx, [ebp - 0x42830]
push ecx
call fcn.0041c990
mov byte [ebp - 4], 3
jmp 0x45794c
cmp eax, 2
jne 0x4578f1
push 0x630
lea eax, [ebp - 0x42830]
push eax
call fcn.0041c990
push eax
lea ecx, [ebp - 0x4282c]
mov byte [ebp - 4], 4
call fcn.00404e30
lea ecx, [ebp - 0x42830]
mov byte [ebp - 4], bl
call fcn.00476b70
mov ecx, dword [ebp - 0x4282c]
push 0
push 0
push ecx
jmp 0x457971
cmp eax, 3
jne 0x457932
push 0x64e
lea edx, [ebp - 0x42830]
push edx
call fcn.0041c990
push eax
lea ecx, [ebp - 0x4282c]
mov byte [ebp - 4], 5
call fcn.00404e30
lea ecx, [ebp - 0x42830]
mov byte [ebp - 4], bl
call fcn.00476b70
mov eax, dword [ebp - 0x4282c]
push 0
push 0
push eax
jmp 0x457971
cmp eax, 4
jne 0x457976
push 0x631
lea ecx, [ebp - 0x42830]
push ecx
call fcn.0041c990
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x4282c]
call fcn.00404e30
lea ecx, [ebp - 0x42830]
mov byte [ebp - 4], bl
call fcn.00476b70
mov edx, dword [ebp - 0x4282c]
push 0
push 0
push edx
call fcn.004c6a56
lea ecx, [ebp - 0x4282c]
mov dword [ebp - 4], 0xffffffff
call fcn.00476b70
jmp 0x457c31
push 0x3030
lea eax, [ebp - 0x4000f]
push eax
lea ecx, [ebp - 0x45918]
push ecx
call fcn.004f05f0
mov al, byte [ebp - 0x45918]
add esp, 0xc
cmp al, 2
je 0x4579cd
cmp al, 1
jne 0x457c31
lea edx, [ebp - 0x40018]
push edx
mov ecx, edi
call fcn.004569a0
jmp 0x4584bd
movzx ecx, byte [ebp - 0x45908]
mov eax, dword [ebp - 0x4590c]
movzx edx, byte [ebp - 0x45907]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x45910]
test eax, eax
mov dword [ebp - 0x4288c], ecx
mov cl, byte [ebp - 0x45916]
mov dword [edi + 0x2c], eax
mov dword [ebp - 0x4287c], edx
mov byte [ebp - 0x4283d], cl
je 0x457c31
test cl, cl
movsx ax, byte [ebp - 0x40013]
mov word [edi + 0x10], ax
jne 0x457a71
push 0x448
call fcn.004c495b
mov esi, eax
add esp, 4
mov dword [ebp - 0x4283c], esi
test esi, esi
mov dword [ebp - 4], 7
je 0x457a60
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
push eax
push ecx
push esi
call fcn.0047ca10
mov dword [esi], vtable.CMpeg4Decoder.0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4284c], esi
jmp 0x457aa2
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4284c], esi
jmp 0x457aa2
cmp cl, 1
jne 0x457c31
push 0x148
call fcn.004c495b
mov esi, eax
add esp, 4
test esi, esi
je 0x457a9a
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
call fcn.0047c770
jmp 0x457a9c
xor eax, eax
mov dword [ebp - 0x4284c], eax
cmp dword [ebp - 0x4284c], 0
je 0x457c31
cmp dword [edi + 0x2c], 0x160
jbe 0x457ac4
mov dword [edi + 0x80], 0x493e0
jmp 0x457ace
mov dword [edi + 0x80], 0x249f0
lea esi, [edi + 0x44]
mov ebx, 0xf
jmp 0x457ae0
mov ecx, dword [edi + 0x80]
push ecx
call fcn.004c498b
mov dword [esi], eax
add esp, 4
add esi, 4
sub ebx, 1
jne 0x457ae0
push 0x2c
lea edx, [ebp - 0x428e4]
push 0
push edx
call fcn.004ea260
mov eax, dword [edi + 0x28]
add esp, 0xc
cmp eax, 0x120
ja 0x457b73
mov ecx, dword [edi + 0x2c]
cmp ecx, 0x160
jbe 0x457b73
add eax, eax
push eax
push ecx
push 1
lea ebx, [ebp - 0x428e4]
call fcn.0047bee0
add esp, 0xc
push 0xc
call fcn.004c495b
mov esi, eax
add esp, 4
mov dword [ebp - 0x4283c], esi
test esi, esi
mov dword [ebp - 4], 8
je 0x457baf
mov eax, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
push 8
push edi
add eax, eax
push esi
mov edi, eax
call fcn.0047cba0
mov edi, dword [ebp - 0x42838]
mov dword [esi], vtable.CJpegEncoder.0
jmp 0x457bb1
push 0xc
call fcn.004c495b
mov esi, eax
add esp, 4
mov dword [ebp - 0x4283c], esi
test esi, esi
mov dword [ebp - 4], 9
je 0x457baf
mov eax, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
push 8
push edi
push esi
mov edi, eax
call fcn.0047cba0
mov edi, dword [ebp - 0x42838]
mov dword [esi], vtable.CJpegEncoder.0
jmp 0x457bb1
xor esi, esi
mov eax, dword [ebp - 0x42844]
mov ebx, dword [ebp - 0x42854]
mov dword [ebp - 4], 0xffffffff
movzx ecx, byte [ebp - 0x45906]
mov edx, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
push edx
mov dword [ebp - 0x4285c], esi
mov dword [ebp - 0x42888], ecx
call fcn.0046e350
mov edi, dword [ebp - 0x42838]
xor esi, esi
push esi
push esi
push edi
push 0x4586d0
push esi
push esi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 0x42848], eax
je 0x457c31
cmp dword [edi + 0xc], 0xffffffff
je 0x457c2b
mov eax, dword [edi + 0xa0]
test al, 2
je 0x457dfa
and eax, 0xfffffffd
mov dword [edi + 0xa0], eax
mov edi, dword [ebp - 0x42838]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 0x42848]
cmp esi, ebx
mov dword [edi + 0xc], 0xffffffff
je 0x457c5e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x42834], ebx
je 0x457c7a
mov esi, dword [ebp - 0x42834]
call fcn.0047c4d0
push esi
call fcn.004c4986
add esp, 4
mov ecx, dword [ebp - 0x4284c]
cmp ecx, ebx
je 0x457c8c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0x4285c]
cmp ecx, ebx
je 0x457c9e
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [ebp - 0x42854]
cmp eax, ebx
je 0x457cb2
lea ecx, [edi + 0x34]
push ecx
push eax
call fcn.0046e120
mov eax, dword [ebp - 0x42858]
cmp eax, ebx
je 0x457cd4
mov edi, eax
call fcn.0047b460
mov edx, edi
push edx
call fcn.004c4986
mov edi, dword [ebp - 0x42838]
add esp, 4
mov esi, dword [ebp - 0x42850]
cmp esi, ebx
je 0x457cfc
mov eax, dword [esi + 0x24]
push eax
call fcn.004fed70
add esp, 4
push esi
call fcn.004fef90
add esp, 4
push esi
call fcn.004c4986
add esp, 4
cmp dword [edi + 0xc8], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xac], ebx
mov dword [edi + 0xa4], ebx
mov word [edi + 0x10], 0xffff
mov dword [edi + 0xc4], ebx
je 0x457d5f
call fcn.004c9922
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 ebx
push ebx
push 0x41b
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xcc], ebx
lea esi, [edi + 0x44]
mov dword [ebp - 0x42848], 0xf
mov eax, dword [esi]
cmp eax, ebx
je 0x457d83
push eax
call fcn.004c4986
add esp, 4
mov dword [esi], ebx
add esi, 4
sub dword [ebp - 0x42848], 1
jne 0x457d72
mov esi, dword [edi + 0xbc]
lea eax, [esi + 0x48]
push eax
mov byte [edi + 0x30], bl
mov dword [ebp - 0x4283c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
cmp eax, ebx
jbe 0x457db5
add eax, 0xffffffff
mov dword [esi + 0x20], eax
cmp dword [esi + 0x20], ebx
jne 0x4584a7
cmp dword [esi + 0x90], ebx
jne 0x4584a2
mov eax, dword [esi + 0x60]
cmp eax, 0xffffffff
je 0x457ded
push eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x88], 0xffffffff
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x60], 0xffffffff
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4584a7
test al, 8
je 0x457ec8
mov edx, dword [ebp - 0x42830]
and eax, 0xfffffff7
test edx, edx
mov dword [edi + 0xa0], eax
je 0x457ec8
mov eax, dword [edi + 0x28]
cmp eax, 0x120
ja 0x457e4b
mov ecx, dword [edi + 0x2c]
cmp ecx, 0x160
jbe 0x457e4b
lea esi, [ebp - 0x428e4]
push esi
mov ebx, edx
call fcn.0048ad80
add esp, 4
mov dword [ebp - 0x428c4], 1
mov edx, esi
mov esi, dword [edi + 0x2c]
imul esi, dword [edi + 0x28]
mov ecx, dword [ebp - 0x4285c]
mov eax, dword [ecx]
push 0
push esi
lea esi, [ebp - 0x40018]
push esi
push edx
mov edx, dword [eax + 8]
call edx
push ecx
mov ecx, esp
mov dword [ebp - 0x4283c], esp
push 0x5f50ef
mov ebx, eax
call fcn.00416360
lea eax, [ebp - 0x42878]
push eax
push edi
call fcn.00458f80
mov dword [ebp - 4], 0xa
mov eax, dword [eax]
push 0x5fd778
push eax
call fcn.004e7305
add esp, 8
test eax, eax
je 0x457eb6
mov esi, eax
mov eax, ebx
lea ecx, [ebp - 0x40018]
call fcn.0047cde0
lea ecx, [ebp - 0x42878]
mov dword [ebp - 4], 0xffffffff
call fcn.00476b70
mov eax, dword [edi + 0xa0]
test al, al
jns 0x457ef7
and eax, 0xffffff7f
cmp dword [edi + 0xb8], 0
mov dword [edi + 0xa0], eax
jne 0x457ef0
mov dword [edi + 0xb8], 1
mov eax, edi
call fcn.004591d0
mov eax, dword [edi + 0xa0]
xor esi, esi
test al, 1
je 0x457f19
and eax, 0xfffffffe
mov dword [edi + 0xa0], eax
mov eax, edi
mov dword [edi + 0xb8], esi
call fcn.004591d0
mov eax, dword [edi + 0xa0]
test al, 0x40
je 0x457f51
mov ecx, dword [edi + 0xb4]
mov edx, dword [edi + 0xb0]
and eax, 0xffffffbf
push ecx
mov ecx, dword [edi + 0xbc]
mov dword [edi + 0xa0], eax
movzx eax, word [edi + 0x10]
push edx
push eax
push ecx
mov dword [edi + 0xac], esi
call fcn.0044b820
mov eax, dword [edi + 0xa0]
test al, 0x20
je 0x457f97
and eax, 0xffffffdf
cmp dword [ebp - 0x42834], esi
mov dword [edi + 0xa0], eax
mov dword [edi + 0xac], esi
je 0x457f90
mov esi, dword [ebp - 0x42834]
call fcn.0047c4d0
push esi
call fcn.004c4986
add esp, 4
mov dword [ebp - 0x42834], 0
mov eax, edi
call fcn.004591d0
mov eax, dword [edi + 0xa0]
test al, 0x10
je 0x458104
and eax, 0xffffffef
cmp dword [edi + 0xac], 0
mov dword [edi + 0xa0], eax
jne 0x457fd6
cmp dword [ebp - 0x42834], 0
je 0x457fe3
mov esi, dword [ebp - 0x42834]
call fcn.0047c4d0
push esi
call fcn.004c4986
add esp, 4
jmp 0x457fe3
cmp dword [ebp - 0x42834], 0
jne 0x4580f3
mov ecx, 0x637a44
call fcn.00405900
mov ecx, 0x637a44
mov word [ebp - 0x4286c], ax
call fcn.00405930
mov ecx, 0x637a44
mov byte [ebp - 0x4286a], al
call fcn.00405960
mov ecx, 0x637a44
mov byte [ebp - 0x42869], al
call fcn.00405980
mov ecx, 0x637a44
mov byte [ebp - 0x42868], al
call fcn.004059b0
mov ecx, 0x637a44
mov byte [ebp - 0x42867], al
call fcn.00422950
push 0x3048
mov byte [ebp - 0x42866], al
mov byte [ebp - 0x42865], 0
call fcn.004c495b
mov edx, dword [ebp - 0x42868]
add esp, 4
push edx
mov esi, eax
mov eax, dword [ebp - 0x4286c]
push eax
mov eax, dword [ebp - 0x42860]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 7]
push ecx
movzx ecx, byte [eax + 6]
push edx
movzx edx, word [eax + 4]
movzx eax, byte [eax + 2]
push ecx
mov ecx, dword [ebp - 0x42888]
push edx
mov edx, dword [ebp - 0x4287c]
push eax
mov eax, dword [ebp - 0x4288c]
push ecx
mov ecx, dword [edi + 0x28]
push edx
mov edx, dword [edi + 0x2c]
push eax
push ecx
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x4283c], esp
push 0x5f50ef
mov dword [ebp - 0x42834], esi
call fcn.00416360
lea eax, [ebp - 0x42880]
push eax
push edi
call fcn.00458750
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.004166f0
push eax
call fcn.0047c370
add esp, 0x34
lea ecx, [ebp - 0x42880]
mov dword [ebp - 4], 0xffffffff
call fcn.00476b70
mov eax, edi
mov dword [edi + 0xac], 1
call fcn.004591d0
cmp dword [edi + 0x40], 0
lea eax, [edi + 0x40]
mov dword [ebp - 0x4282c], eax
jle 0x458495
mov ecx, dword [edi + 0x3c]
mov ebx, dword [edi + ecx*4 + 0x44]
mov eax, dword [ebx]
mov esi, dword [ebx + 0xd]
sub eax, 0x17
mov dword [ebp - 0x42864], eax
lea edx, [ebx + 0x17]
mov dword [ebp - 0x42844], edx
mov eax, 0x10624dd3
mul esi
mov al, byte [ebx + 0x11]
shr edx, 6
shr al, 3
and al, 3
mov dword [ebp - 0x4283c], edx
jne 0x45837b
mov eax, esi
sub eax, dword [ebp - 0x42870]
mov dword [ebp - 0x42870], esi
test eax, eax
jle 0x45816c
cmp eax, 0x190
jle 0x458171
mov eax, 0x28
sub eax, 3
jns 0x458178
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx ecx, byte [ebp - 0x4283d]
mov esi, dword [ebp - 0x42844]
mov eax, esi
call fcn.004563d0
cmp dword [edi + 0xac], 0
movzx ecx, al
je 0x4581e1
cmp dword [ebp - 0x42874], 0
je 0x4581b6
test ecx, ecx
je 0x4581e1
mov dword [ebp - 0x42874], 0
mov eax, dword [ebp - 0x42834]
test eax, eax
je 0x4581e1
movzx edx, byte [ebx + 0x11]
shr edx, 6
and edx, 1
push edx
mov edx, dword [ebx + 0xd]
push ecx
mov ecx, dword [ebp - 0x42864]
push ecx
lea ecx, [esi - 0xe]
call fcn.0047c530
add esp, 0xc
cmp byte [ebx + 8], 5
jne 0x4581f1
mov dword [edi + 0xcc], 0
cmp dword [edi + 0xb8], 0
je 0x45821d
mov ebx, dword [ebp - 0x42854]
lea edx, [edi + 0x34]
push edx
lea eax, [ebp - 0x428b8]
push eax
call fcn.0046e3d0
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x457c0e
cmp dword [edi + 0xcc], 0
je 0x45825f
mov ebx, dword [ebp - 0x42854]
lea ecx, [edi + 0x34]
push ecx
lea edx, [ebp - 0x428b8]
push edx
call fcn.0046e3d0
mov eax, dword [edi + 0x3c]
add eax, 1
cdq
mov ecx, 0xf
idiv ecx
mov dword [edi + 0x3c], edx
mov edx, dword [ebp - 0x4282c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x457c0e
mov ecx, dword [ebp - 0x4284c]
mov edx, dword [ebp - 0x42864]
mov dword [ebp - 4], 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push esi
call eax
test eax, eax
mov dword [ebp - 0x42830], eax
mov dword [ebp - 4], 0xffffffff
je 0x457c2b
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x42854]
mov dword [ebp - 0x428b8], ecx
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x428b4], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x428b0], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x42894], eax
mov dword [ebp - 0x428a8], eax
shr eax, 1
lea edx, [edi + 0x34]
mov dword [ebp - 0x428a4], eax
mov dword [ebp - 0x428a0], eax
push edx
lea eax, [ebp - 0x428b8]
push eax
mov dword [ebp - 0x42890], ecx
mov dword [ebp - 0x42898], 1
call fcn.0046e3d0
mov eax, dword [edi + 0x3c]
add eax, 1
cdq
mov ecx, 0xf
idiv ecx
mov dword [edi + 0x3c], edx
mov edx, dword [ebp - 0x4282c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [edi + 0xc8], 0
je 0x457c0e
mov ecx, dword [ebp - 0x42860]
mov eax, dword [ecx + 0x302c]
add eax, 3
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ecx + 0x14]
add eax, 0x3e8
cmp eax, ecx
mov esi, eax
ja 0x458340
mov esi, ecx
call fcn.004c9922
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x4283c]
mov edx, dword [eax]
push esi
push ecx
mov ecx, eax
mov eax, dword [edx + 0x74]
push 0x41b
call eax
mov ecx, eax
call fcn.00405e70
jmp 0x457c0e
cmp al, 1
jne 0x45848d
cmp dword [edi + 0xb8], 0
jne 0x457c0e
cmp dword [edi + 0xac], 0
je 0x4583c8
mov ecx, dword [ebp - 0x42834]
test ecx, ecx
je 0x4583c8
cmp dword [ecx + 0x3038], 0xffffffff
je 0x4583c8
mov eax, dword [ebp - 0x42844]
mov edi, ecx
mov ecx, dword [ebp - 0x42864]
add eax, 0xfffffff2
call fcn.0047c670
mov edi, dword [ebp - 0x42838]
cmp dword [ebp - 0x42850], 0
jne 0x4583ff
push 0x38
call fcn.004c495b
mov ecx, dword [ebp - 0x42860]
movzx edx, byte [ecx + 7]
mov esi, eax
movzx eax, byte [ecx + 6]
movzx ecx, word [ecx + 4]
add esp, 4
push edx
push ecx
mov dword [ebp - 0x42850], esi
call fcn.0047c250
add esp, 8
mov edx, dword [ebp - 0x42864]
mov ebx, dword [ebp - 0x42850]
push edx
mov edx, dword [ebp - 0x42844]
lea ecx, [ebp - 0x42818]
call fcn.0047c2a0
add esp, 4
cmp byte [0x636fa0], 0
mov ebx, eax
je 0x45823c
cmp byte [edi + 0x30], 0
je 0x45823c
cmp dword [ebp - 0x42858], 0
jne 0x458472
push 0x188
call fcn.004c495b
mov esi, eax
mov eax, dword [ebp - 0x42860]
movzx edx, byte [eax + 7]
movzx ecx, byte [eax + 6]
movzx eax, word [eax + 4]
add esp, 4
push ebx
mov dword [ebp - 0x42858], esi
call fcn.0047b350
add esp, 4
mov esi, dword [ebp - 0x42858]
lea eax, [ebp - 0x42818]
push ebx
push eax
call fcn.0047b4e0
add esp, 8
jmp 0x45823c
lea eax, [ecx + 1]
jmp 0x458242
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x457c0e
call fcn.0044c4b0
mov edx, dword [ebp - 0x4283c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.004591d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e3543
mov esp, ebp
pop ebp
ret