Function at 0x45a7d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6ab4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x45908
call fcn.004eb910
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.00459a50
xor esi, esi
lea eax, [ebp - 0x45910]
mov dword [ebp - 0x4282c], esi
mov dword [ebp - 0x4283c], esi
mov dword [ebp - 0x42848], esi
mov dword [ebp - 0x42858], esi
mov dword [ebp - 0x42874], esi
mov dword [ebp - 0x42870], esi
mov dword [ebp - 0x42850], esi
mov dword [ebp - 0x42854], esi
mov dword [ebp - 0x4285c], eax
mov dword [ebp - 0x4286c], esi
call fcn.0046dcf0
push edi
lea ecx, [edi + 0x34]
push ecx
push esi
push esi
mov ebx, eax
mov dword [ebp - 0x4284c], eax
mov dword [ebp - 0x42834], ecx
call fcn.0046e860
call fcn.0049cd80
cmp eax, 0xffffffff
mov dword [edi + 0xd8], eax
jne 0x45a94c
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45a8b0
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42834], eax
push 0x572
lea ecx, [ebp - 0x4282c]
push ecx
mov dword [ebp - 4], 0
call fcn.0041d1c0
push eax
lea ecx, [ebp - 0x42834]
mov byte [ebp - 4], 1
call fcn.00404e20
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4282c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x42834]
push 0
push 0
push esi
call fcn.004c72d6
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 0x45b644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45b644
push 4
call fcn.004c51db
add esp, 4
test eax, eax
je 0x45a964
mov dword [eax], 0x41c
mov ecx, eax
jmp 0x45a966
xor ecx, ecx
mov eax, dword [edi + 0xd8]
push eax
call fcn.0049d2a0
mov ecx, dword [edi + 0xbc]
mov eax, dword [ecx + 0x40]
mov ecx, dword [edi + 0xd8]
add esp, 4
push eax
call fcn.0049ceb0
add esp, 4
cmp eax, 0xffffffff
jne 0x45aa28
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45a9b0
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42834], eax
push 0x573
lea ecx, [ebp - 0x4282c]
mov ebx, 2
push ecx
mov dword [ebp - 4], ebx
call fcn.0041d1c0
push eax
lea ecx, [ebp - 0x42834]
mov byte [ebp - 4], 3
call fcn.00404e20
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4282c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45aa10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x42834]
push 0
push 0
push ebx
call fcn.004c72d6
lea eax, [ebx - 0x10]
jmp 0x45a923
mov ecx, dword [edi + 0xbc]
mov word [ebp - 0x42828], 2
movzx edx, word [ecx + 0x74]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42826], ax
mov eax, dword [edi + 0xbc]
mov ecx, dword [eax + 0x70]
mov eax, dword [edi + 0xd8]
lea edx, [ebp - 0x42828]
push edx
push eax
mov dword [ebp - 0x42824], ecx
call fcn.0049d0b0
add esp, 8
cmp eax, 0xffffffff
jne 0x45aad0
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45aa8d
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42834], eax
push 0x573
lea ecx, [ebp - 0x4282c]
push ecx
mov dword [ebp - 4], 4
call fcn.0041d1c0
push eax
lea ecx, [ebp - 0x42834]
mov byte [ebp - 4], 5
call fcn.00404e20
mov byte [ebp - 4], 4
jmp 0x45a9ee
mov ecx, dword [edi + 0x14]
lea ebx, [edi + 0x14]
mov byte [ebp - 0x42814], 3
mov eax, dword [ecx - 0xc]
add eax, 9
mov dword [ebp - 0x42818], eax
mov eax, ecx
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x45aaff
mov edx, dword [eax + 4]
push edx
mov ecx, ebx
call fcn.004053f0
mov eax, dword [ebx]
mov ecx, eax
mov ecx, dword [ecx - 0xc]
push ecx
push eax
lea edx, [ebp - 0x4280f]
push edx
call fcn.004f0e70
mov eax, dword [edi + 0xd8]
add esp, 0xc
push eax
lea ebx, [ebp - 0x42818]
call fcn.00453df0
add esp, 4
test eax, eax
je 0x45b644
mov ecx, dword [edi + 0xd8]
push ecx
call fcn.00453e30
add esp, 4
test eax, eax
je 0x45b644
mov al, byte [ebp - 0x42814]
cmp al, 7
je 0x45acc1
lea ecx, [ebp - 0x42830]
movzx esi, al
call fcn.004773a0
cmp esi, 0xc
mov ebx, 6
mov dword [ebp - 4], ebx
jne 0x45acaa
movzx eax, byte [ebp - 0x42810]
test eax, eax
jne 0x45abc2
push 0x62e
lea edx, [ebp - 0x4282c]
push edx
call fcn.0041d1c0
push eax
lea ecx, [ebp - 0x42830]
mov byte [ebp - 4], 7
call fcn.00404e20
lea ecx, [ebp - 0x4282c]
mov byte [ebp - 4], bl
call fcn.004773d0
mov eax, dword [ebp - 0x42830]
push 0
push 0
push eax
jmp 0x45aca5
cmp eax, 1
jne 0x45abe1
push 0x62f
lea ecx, [ebp - 0x4282c]
push ecx
call fcn.0041d1c0
mov byte [ebp - 4], 8
jmp 0x45ac80
cmp eax, 2
jne 0x45ac25
push 0x630
lea eax, [ebp - 0x4282c]
push eax
call fcn.0041d1c0
push eax
lea ecx, [ebp - 0x42830]
mov byte [ebp - 4], 9
call fcn.00404e20
lea ecx, [ebp - 0x4282c]
mov byte [ebp - 4], bl
call fcn.004773d0
mov ecx, dword [ebp - 0x42830]
push 0
push 0
push ecx
jmp 0x45aca5
cmp eax, 3
jne 0x45ac66
push 0x64e
lea edx, [ebp - 0x4282c]
push edx
call fcn.0041d1c0
push eax
lea ecx, [ebp - 0x42830]
mov byte [ebp - 4], 0xa
call fcn.00404e20
lea ecx, [ebp - 0x4282c]
mov byte [ebp - 4], bl
call fcn.004773d0
mov eax, dword [ebp - 0x42830]
push 0
push 0
push eax
jmp 0x45aca5
cmp eax, 4
jne 0x45acaa
push 0x631
lea ecx, [ebp - 0x4282c]
push ecx
call fcn.0041d1c0
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x42830]
call fcn.00404e20
lea ecx, [ebp - 0x4282c]
mov byte [ebp - 4], bl
call fcn.004773d0
mov edx, dword [ebp - 0x42830]
push 0
push 0
push edx
call fcn.004c72d6
lea ecx, [ebp - 0x42830]
mov dword [ebp - 4], 0xffffffff
call fcn.004773d0
jmp 0x45b644
push 0x3030
lea eax, [ebp - 0x4280f]
push eax
lea ecx, [ebp - 0x45910]
push ecx
call fcn.004f0e70
mov al, byte [ebp - 0x45910]
add esp, 0xc
cmp al, 2
je 0x45ad01
cmp al, 1
jne 0x45b644
lea edx, [ebp - 0x42818]
push edx
mov ecx, edi
call fcn.00459b70
jmp 0x45b855
movzx ecx, byte [ebp - 0x45900]
mov eax, dword [ebp - 0x45904]
movzx edx, byte [ebp - 0x458ff]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x45908]
mov dword [ebp - 0x4287c], ecx
mov cl, byte [ebp - 0x4590e]
xor esi, esi
cmp eax, esi
mov dword [edi + 0x2c], eax
mov dword [ebp - 0x42888], edx
mov byte [ebp - 0x42841], cl
je 0x45b644
test cl, cl
movsx ax, byte [ebp - 0x42813]
mov word [edi + 0x10], ax
jne 0x45ada7
push 0x448
call fcn.004c51db
mov ebx, eax
add esp, 4
mov dword [ebp - 0x42840], ebx
cmp ebx, esi
mov dword [ebp - 4], 0xc
je 0x45ad96
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
push eax
push ecx
push ebx
call fcn.0047d270
mov dword [ebx], vtable.CMpeg4Decoder.0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x42848], ebx
jmp 0x45addc
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x42848], ebx
jmp 0x45addc
cmp cl, 1
jne 0x45b644
push 0x148
call fcn.004c51db
mov edx, eax
add esp, 4
cmp edx, esi
je 0x45add4
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov esi, edx
call fcn.0047cfd0
xor esi, esi
jmp 0x45add6
xor eax, eax
mov dword [ebp - 0x42848], eax
cmp dword [ebp - 0x42848], esi
je 0x45b644
cmp dword [edi + 0x2c], 0x160
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], esi
jbe 0x45ae06
mov dword [edi + 0x80], 0x493e0
jmp 0x45ae10
mov dword [edi + 0x80], 0x249f0
lea ebx, [edi + 0x44]
mov esi, 0xf
jmp 0x45ae20
mov ecx, dword [edi + 0x80]
push ecx
call fcn.004c520b
mov dword [ebx], eax
add esp, 4
add ebx, 4
sub esi, 1
jne 0x45ae20
push 0x2c
lea edx, [ebp - 0x428e0]
push 0
push edx
call fcn.004eaae0
mov eax, dword [edi + 0x28]
add esp, 0xc
cmp eax, 0x120
ja 0x45aeb3
mov ecx, dword [edi + 0x2c]
cmp ecx, 0x160
jbe 0x45aeb3
add eax, eax
push eax
push ecx
push 1
lea ebx, [ebp - 0x428e0]
call fcn.0047c740
add esp, 0xc
push 0xc
call fcn.004c51db
mov ebx, eax
add esp, 4
mov dword [ebp - 0x42840], ebx
test ebx, ebx
mov dword [ebp - 4], 0xd
je 0x45aeef
mov eax, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
push 8
push edi
add eax, eax
push ebx
mov edi, eax
call fcn.0047d420
mov edi, dword [ebp - 0x42838]
mov dword [ebx], vtable.CJpegEncoder.0
jmp 0x45aef1
push 0xc
call fcn.004c51db
mov ebx, eax
add esp, 4
mov dword [ebp - 0x42840], ebx
test ebx, ebx
mov dword [ebp - 4], 0xe
je 0x45aeef
mov eax, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
push 8
push edi
push ebx
mov edi, eax
call fcn.0047d420
mov edi, dword [ebp - 0x42838]
mov dword [ebx], vtable.CJpegEncoder.0
jmp 0x45aef1
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
movzx ecx, byte [ebp - 0x458fe]
mov edx, dword [edi + 0x28]
mov eax, dword [ebp - 0x42834]
mov edi, dword [edi + 0x2c]
mov dword [ebp - 0x42858], ebx
mov ebx, dword [ebp - 0x4284c]
push edx
mov dword [ebp - 0x42880], ecx
call fcn.0046ebb0
mov eax, dword [ebp - 0x42838]
push 0
push 0
push eax
push 0x459ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp - 0x42870], eax
je 0x45b63e
mov ecx, dword [ebp - 0x42838]
cmp dword [ecx + 0xd8], 0xffffffff
mov edi, ecx
je 0x45b644
mov eax, dword [edi + 0xa0]
test al, 2
je 0x45af78
and eax, 0xfffffffd
mov dword [edi + 0xa0], eax
jmp 0x45b644
test al, 8
je 0x45b046
mov edx, dword [ebp - 0x4282c]
and eax, 0xfffffff7
test edx, edx
mov dword [edi + 0xa0], eax
je 0x45b046
mov eax, dword [edi + 0x28]
cmp eax, 0x120
ja 0x45afc9
mov ecx, dword [edi + 0x2c]
cmp ecx, 0x160
jbe 0x45afc9
lea esi, [ebp - 0x428e0]
push esi
mov ebx, edx
call fcn.0048b600
add esp, 4
mov dword [ebp - 0x428c0], 1
mov edx, esi
mov esi, dword [edi + 0x2c]
imul esi, dword [edi + 0x28]
mov ecx, dword [ebp - 0x42858]
mov eax, dword [ecx]
push 0
push esi
lea esi, [ebp - 0x42818]
push esi
push edx
mov edx, dword [eax + 8]
call edx
push ecx
mov ecx, esp
mov dword [ebp - 0x42840], esp
push 0x5f510f
mov ebx, eax
call fcn.00416b90
lea eax, [ebp - 0x42878]
push eax
push edi
call fcn.00459800
mov dword [ebp - 4], 0xf
mov eax, dword [eax]
push 0x5fd780
push eax
call fcn.004e7b85
add esp, 8
test eax, eax
je 0x45b034
mov esi, eax
mov eax, ebx
lea ecx, [ebp - 0x42818]
call fcn.0047d660
lea ecx, [ebp - 0x42878]
mov dword [ebp - 4], 0xffffffff
call fcn.004773d0
mov eax, dword [edi + 0xa0]
xor ebx, ebx
test al, al
jns 0x45b076
and eax, 0xffffff7f
cmp dword [edi + 0xb8], ebx
mov dword [edi + 0xa0], eax
jne 0x45b06f
mov dword [edi + 0xb8], 1
mov eax, edi
call fcn.00459a50
mov eax, dword [edi + 0xa0]
test al, 1
je 0x45b096
and eax, 0xfffffffe
mov dword [edi + 0xa0], eax
mov eax, edi
mov dword [edi + 0xb8], ebx
call fcn.00459a50
mov eax, dword [edi + 0xa0]
test al, 0x40
je 0x45b0ce
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], ebx
call fcn.0044c090
mov eax, dword [edi + 0xa0]
test al, 0x20
je 0x45b110
and eax, 0xffffffdf
cmp dword [ebp - 0x4283c], ebx
mov dword [edi + 0xa0], eax
mov dword [edi + 0xac], ebx
je 0x45b109
mov esi, dword [ebp - 0x4283c]
call fcn.0047cd30
push esi
call fcn.004c5206
add esp, 4
mov dword [ebp - 0x4283c], ebx
mov eax, edi
call fcn.00459a50
mov eax, dword [edi + 0xa0]
test al, 0x10
je 0x45b27a
and eax, 0xffffffef
cmp dword [edi + 0xac], ebx
mov dword [edi + 0xa0], eax
jne 0x45b14d
cmp dword [ebp - 0x4283c], ebx
je 0x45b159
mov esi, dword [ebp - 0x4283c]
call fcn.0047cd30
push esi
call fcn.004c5206
add esp, 4
jmp 0x45b159
cmp dword [ebp - 0x4283c], ebx
jne 0x45b269
mov ecx, 0x637a44
call fcn.004058f0
mov ecx, 0x637a44
mov word [ebp - 0x42868], ax
call fcn.00405920
mov ecx, 0x637a44
mov byte [ebp - 0x42866], al
call fcn.00405950
mov ecx, 0x637a44
mov byte [ebp - 0x42865], al
call fcn.00405970
mov ecx, 0x637a44
mov byte [ebp - 0x42864], al
call fcn.004059a0
mov ecx, 0x637a44
mov byte [ebp - 0x42863], al
call fcn.00423180
push 0x3048
mov byte [ebp - 0x42862], al
mov byte [ebp - 0x42861], 0
call fcn.004c51db
mov edx, dword [ebp - 0x42864]
add esp, 4
push edx
mov esi, eax
mov eax, dword [ebp - 0x42868]
push eax
mov eax, dword [ebp - 0x4285c]
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 - 0x42880]
push edx
mov edx, dword [ebp - 0x42888]
push eax
mov eax, dword [ebp - 0x4287c]
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 - 0x42840], esp
push 0x5f510f
mov dword [ebp - 0x4283c], esi
call fcn.00416b90
lea eax, [ebp - 0x42884]
push eax
push edi
call fcn.00458fd0
mov ecx, eax
mov dword [ebp - 4], 0x10
call fcn.00416f20
push eax
call fcn.0047cbd0
add esp, 0x34
lea ecx, [ebp - 0x42884]
mov dword [ebp - 4], 0xffffffff
call fcn.004773d0
mov eax, edi
mov dword [edi + 0xac], 1
call fcn.00459a50
cmp dword [edi + 0x40], ebx
lea eax, [edi + 0x40]
mov dword [ebp - 0x42830], eax
jle 0x45b631
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 - 0x42860], eax
lea edx, [ebx + 0x17]
mov dword [ebp - 0x42834], edx
mov eax, 0x10624dd3
mul esi
mov al, byte [ebx + 4]
shr edx, 6
cmp al, 3
mov dword [ebp - 0x42840], edx
jne 0x45b629
mov al, byte [ebx + 0x11]
shr al, 3
and al, 3
jne 0x45b4f5
mov eax, esi
sub eax, dword [ebp - 0x4286c]
mov dword [ebp - 0x4286c], esi
test eax, eax
jle 0x45b2ec
cmp eax, 0x190
jle 0x45b2f1
mov eax, 0x28
sub eax, 3
jns 0x45b2f8
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx ecx, byte [ebp - 0x42841]
mov esi, dword [ebp - 0x42834]
mov eax, esi
call fcn.00456c50
cmp dword [edi + 0xac], 0
movzx ecx, al
je 0x45b361
cmp dword [ebp - 0x42874], 0
je 0x45b336
test ecx, ecx
je 0x45b361
mov dword [ebp - 0x42874], 0
mov eax, dword [ebp - 0x4283c]
test eax, eax
je 0x45b361
movzx edx, byte [ebx + 0x11]
shr edx, 6
and edx, 1
push edx
mov edx, dword [ebx + 0xd]
push ecx
mov ecx, dword [ebp - 0x42860]
push ecx
lea ecx, [esi - 0xe]
call fcn.0047cd90
add esp, 0xc
cmp byte [ebx + 8], 5
jne 0x45b371
mov dword [edi + 0xcc], 0
cmp dword [edi + 0xb8], 0
je 0x45b39d
mov ebx, dword [ebp - 0x4284c]
add edi, 0x34
push edi
lea edx, [ebp - 0x428b4]
push edx
call fcn.0046ec30
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45af4b
cmp dword [edi + 0xcc], 0
je 0x45b3df
mov ebx, dword [ebp - 0x4284c]
lea eax, [edi + 0x34]
push eax
lea ecx, [ebp - 0x428b4]
push ecx
call fcn.0046ec30
mov eax, dword [edi + 0x3c]
add eax, 1
cdq
mov ecx, 0xf
idiv ecx
mov dword [edi + 0x3c], edx
mov edx, dword [ebp - 0x42830]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x45af4b
mov ecx, dword [ebp - 0x42848]
mov edx, dword [ebp - 0x42860]
mov dword [ebp - 4], 0x11
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push esi
call eax
test eax, eax
mov dword [ebp - 0x4282c], eax
mov dword [ebp - 4], 0xffffffff
je 0x45b63e
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x4284c]
mov dword [ebp - 0x428b4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x428b0], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x428ac], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x42890], eax
mov dword [ebp - 0x428a4], eax
shr eax, 1
lea edx, [edi + 0x34]
mov dword [ebp - 0x428a0], eax
mov dword [ebp - 0x4289c], eax
push edx
lea eax, [ebp - 0x428b4]
push eax
mov dword [ebp - 0x4288c], ecx
mov dword [ebp - 0x42894], 1
call fcn.0046ec30
mov eax, dword [edi + 0x3c]
add eax, 1
cdq
mov ecx, 0xf
idiv ecx
mov dword [edi + 0x3c], edx
mov edx, dword [ebp - 0x42830]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [edi + 0xc8], 0
je 0x45af4b
mov ecx, dword [ebp - 0x4285c]
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 0x45b4c0
mov esi, ecx
call fcn.004ca1a2
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x42840]
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.00405e30
jmp 0x45af4b
cmp al, 1
jne 0x45b629
cmp dword [edi + 0xb8], 0
jne 0x45af4b
mov ecx, dword [ebp - 0x42838]
cmp dword [ecx + 0xac], 0
je 0x45b540
mov edi, dword [ebp - 0x4283c]
test edi, edi
je 0x45b540
cmp dword [edi + 0x3038], 0xffffffff
je 0x45b540
mov eax, dword [ebp - 0x42834]
mov ecx, dword [ebp - 0x42860]
add eax, 0xfffffff2
call fcn.0047ced0
cmp dword [ebp - 0x42854], 0
jne 0x45b579
push 0x38
call fcn.004c51db
mov edi, dword [ebp - 0x4285c]
movzx edx, byte [edi + 7]
movzx ecx, word [edi + 4]
add esp, 4
mov esi, eax
movzx eax, byte [edi + 6]
push edx
push ecx
mov dword [ebp - 0x42854], esi
call fcn.0047cab0
add esp, 8
jmp 0x45b57f
mov edi, dword [ebp - 0x4285c]
mov edx, dword [ebp - 0x42860]
mov ebx, dword [ebp - 0x42854]
push edx
mov edx, dword [ebp - 0x42834]
lea ecx, [ebp - 0x2818]
call fcn.0047cb00
add esp, 4
cmp byte [0x636fa0], 0
mov ebx, eax
je 0x45b600
mov eax, dword [ebp - 0x42838]
cmp byte [eax + 0x30], 0
je 0x45b600
cmp dword [ebp - 0x42850], 0
jne 0x45b5ea
push 0x188
call fcn.004c51db
movzx edx, byte [edi + 7]
movzx ecx, byte [edi + 6]
mov esi, eax
movzx eax, word [edi + 4]
add esp, 4
push ebx
mov dword [ebp - 0x42850], esi
call fcn.0047bbb0
add esp, 4
mov esi, dword [ebp - 0x42850]
lea ecx, [ebp - 0x2818]
push ebx
push ecx
call fcn.0047bd40
add esp, 8
mov ecx, dword [ebp - 0x42838]
mov eax, dword [ecx + 0x3c]
add eax, 1
cdq
mov esi, 0xf
idiv esi
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp - 0x42830]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x45af4b
lea eax, [ecx + 1]
jmp 0x45b3c2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45af4b
mov edi, dword [ebp - 0x42838]
mov eax, dword [edi + 0xd8]
push eax
call fcn.0049d1d0
mov esi, dword [ebp - 0x42870]
xor ebx, ebx
add esp, 4
cmp esi, ebx
mov dword [edi + 0xd8], 0xffffffff
je 0x45b679
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x4283c]
cmp esi, ebx
je 0x45b691
call fcn.0047cd30
push esi
call fcn.004c5206
add esp, 4
mov ecx, dword [ebp - 0x42848]
cmp ecx, ebx
je 0x45b6a3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0x42858]
cmp ecx, ebx
je 0x45b6b5
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [ebp - 0x4284c]
cmp eax, ebx
je 0x45b6c9
lea ecx, [edi + 0x34]
push ecx
push eax
call fcn.0046e980
mov eax, dword [ebp - 0x42850]
cmp eax, ebx
je 0x45b6eb
mov edi, eax
call fcn.0047bcc0
mov edx, edi
push edx
call fcn.004c5206
mov edi, dword [ebp - 0x42838]
add esp, 4
mov esi, dword [ebp - 0x42854]
cmp esi, ebx
je 0x45b713
mov eax, dword [esi + 0x24]
push eax
call fcn.004ff5f0
add esp, 4
push esi
call fcn.004ff810
add esp, 4
push esi
call fcn.004c5206
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 0x45b776
call fcn.004ca1a2
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], 0
lea esi, [edi + 0x44]
mov ebx, 0xf
mov eax, dword [esi]
test eax, eax
je 0x45b79d
push eax
call fcn.004c5206
add esp, 4
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x45b788
mov esi, dword [edi + 0xbc]
lea ebx, [esi + 0x48]
push ebx
mov byte [edi + 0x30], 0
mov dword [ebp - 0x42840], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
xor ecx, ecx
cmp eax, ecx
jbe 0x45b7ce
add eax, 0xffffffff
mov dword [esi + 0x20], eax
cmp dword [esi + 0x20], ecx
jne 0x45b845
cmp dword [esi + 0x90], ecx
jne 0x45b808
mov eax, dword [esi + 0x60]
cmp eax, 0xffffffff
je 0x45b7fe
push eax
mov dword [esi + 0x64], ecx
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 0x45b845
mov eax, dword [esi + 0x44]
or ebx, 0xffffffff
cmp eax, ebx
je 0x45b834
push eax
mov dword [esi + 0x64], ecx
mov dword [esi + 0x88], ebx
call fcn.0049d1d0
mov edx, dword [esi + 0x40]
add esp, 4
push edx
mov dword [esi + 0x44], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x42840]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.00459a50
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.004e3dc3
mov esp, ebp
pop ebp
ret