Function at 0x420d50
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48008e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x49a690]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edi
mov byte [esp + 0xb8], 5
test esi, esi
jne 0x420e29
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x423528
test byte [eax + 0x1c], 8
je 0x423528
cmp byte [eax + 0x19], 1
jb 0x423528
lea ecx, [esi + 0x5c]
jmp 0x423515
cmp dword [esi + 0x10], 3
ja 0x4234f8
mov ecx, 0x504988
call fcn.0041c570
mov ebx, dword [0x50497c]
mov dword [esp + 0x2c], ebx
cmp ebx, dword [0x504980]
jne 0x420e92
mov eax, dword [esi + 0x10]
test eax, eax
je 0x420e60
cmp eax, 3
je 0x420e60
cmp eax, 2
jne 0x420e92
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x420e98
test byte [ecx + 0x1c], 1
je 0x420e98
cmp byte [ecx + 0x19], 2
jb 0x420e98
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x5e
call fcn.00401000
add esp, 8
mov ecx, dword [0x49cf18]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x24], 0
mov eax, connect
cmp ebx, dword [0x504980]
je 0x42283e
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], edi
test edx, edx
je 0x420eda
lea eax, [edx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [0x49cf18]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
test esi, esi
je 0x420f16
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x420f10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x420f10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [0x49cf18]
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x420f2a
cmp eax, 3
jne 0x421699
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x420f60
cmp byte [ecx + 0x19], 2
jb 0x420f60
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x5f
call fcn.00401000
mov ecx, dword [0x49cf18]
add esp, 8
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x420f9a
cmp byte [ecx + 0x19], 2
jb 0x420f9a
push dword [esp + 0x24]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x60
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x420fd1
cmp byte [ecx + 0x19], 2
jb 0x420fd1
push edi
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x61
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x42100b
cmp byte [ecx + 0x19], 2
jb 0x42100b
lea eax, [edi + 0x40]
push eax
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x62
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421048
cmp byte [ecx + 0x19], 2
jb 0x421048
lea eax, [edi + 0x80]
push eax
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x63
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421085
cmp byte [ecx + 0x19], 2
jb 0x421085
lea eax, [edi + 0x100]
push eax
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x64
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4210c1
cmp byte [ecx + 0x19], 2
jb 0x4210c1
push dword [edi + 0x200]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x65
call fcn.0041cb20
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x42110b
cmp byte [ecx + 0x19], 2
jb 0x42110b
mov eax, dword [edi + 0x208]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x66
push dword [eax + 0x10]
call fcn.00401020
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x49cf18]
add esp, 0xc
mov dword [esp + 0x14], edi
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421161
cmp byte [ecx + 0x19], 2
jb 0x421161
mov eax, dword [edi + 0x214]
sub eax, dword [edi + 0x20c]
mov edx, 0x48c034
sar eax, 3
push eax
mov eax, dword [edi + 0x210]
sub eax, dword [edi + 0x20c]
sar eax, 3
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x67
call fcn.00401050
mov ecx, dword [0x49cf18]
add esp, 0x10
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4211b7
cmp byte [ecx + 0x19], 2
jb 0x4211b7
mov eax, dword [edi + 0x228]
sub eax, dword [edi + 0x220]
mov edx, 0x48c034
sar eax, 3
push eax
mov eax, dword [edi + 0x224]
sub eax, dword [edi + 0x220]
sar eax, 3
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x68
call fcn.00401050
mov ecx, dword [0x49cf18]
add esp, 0x10
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4211f3
cmp byte [ecx + 0x19], 2
jb 0x4211f3
push dword [edi + 0x234]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x69
call fcn.0041cb20
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x42123e
cmp byte [ecx + 0x19], 2
jb 0x42123e
cmp byte [edi + 0x23c], 0
mov edx, str.false
mov eax, str.true
cmove eax, edx
push eax
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x6a
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421289
cmp byte [ecx + 0x19], 2
jb 0x421289
cmp byte [edi + 0x23d], 0
mov edx, str.false
mov eax, str.true
cmove eax, edx
push eax
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x6b
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4212d4
cmp byte [ecx + 0x19], 2
jb 0x4212d4
cmp byte [edi + 0x23e], 0
mov edx, str.false
mov eax, str.true
cmove eax, edx
push eax
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x6c
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421310
cmp byte [ecx + 0x19], 2
jb 0x421310
push dword [edi + 0x240]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x6d
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421346
cmp byte [ecx + 0x19], 2
jb 0x421346
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x6e
call fcn.00401000
mov ecx, dword [0x49cf18]
add esp, 8
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x42138f
cmp byte [ecx + 0x19], 2
jb 0x42138f
mov eax, dword [edi + 0x258]
sub eax, dword [edi + 0x254]
mov edx, 0x48c034
push eax
push dword [edi + 0x264]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x6f
call fcn.00401050
mov ecx, dword [0x49cf18]
add esp, 0x10
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4213d9
cmp byte [ecx + 0x19], 2
jb 0x4213d9
mov eax, dword [edi + 0x29c]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x70
push dword [eax + 0x10]
call fcn.00401020
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x49cf18]
add esp, 0xc
mov dword [esp + 0x14], edi
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421423
cmp byte [ecx + 0x19], 2
jb 0x421423
mov eax, dword [edi + 0x2c8]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x71
push dword [eax + 0x10]
call fcn.00401020
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x49cf18]
add esp, 0xc
mov dword [esp + 0x14], edi
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x42145f
cmp byte [ecx + 0x19], 2
jb 0x42145f
push dword [edi + 0x2cc]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x72
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4214a9
cmp byte [ecx + 0x19], 2
jb 0x4214a9
mov eax, dword [edi + 0x2d0]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x73
push dword [eax + 0x10]
call fcn.00401020
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x49cf18]
add esp, 0xc
mov dword [esp + 0x14], edi
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4214df
cmp byte [ecx + 0x19], 2
jb 0x4214df
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x74
call fcn.00401000
mov ecx, dword [0x49cf18]
add esp, 8
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421528
cmp byte [ecx + 0x19], 2
jb 0x421528
mov eax, dword [edi + 0x2dc]
sub eax, dword [edi + 0x2d8]
mov edx, 0x48c034
push eax
push dword [edi + 0x2e8]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x75
call fcn.00401050
mov ecx, dword [0x49cf18]
add esp, 0x10
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421572
cmp byte [ecx + 0x19], 2
jb 0x421572
mov eax, dword [edi + 0x320]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x76
push dword [eax + 0x10]
call fcn.00401020
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x49cf18]
add esp, 0xc
mov dword [esp + 0x14], edi
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4215bc
cmp byte [ecx + 0x19], 2
jb 0x4215bc
mov eax, dword [edi + 0x34c]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x77
push dword [eax + 0x10]
call fcn.00401020
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x49cf18]
add esp, 0xc
mov dword [esp + 0x14], edi
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x4215f8
cmp byte [ecx + 0x19], 2
jb 0x4215f8
push dword [edi + 0x350]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x78
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421642
cmp byte [ecx + 0x19], 2
jb 0x421642
mov eax, dword [edi + 0x354]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x79
push dword [eax + 0x10]
call fcn.00401020
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x49cf18]
add esp, 0xc
mov dword [esp + 0x14], edi
cmp ecx, 0x49cf18
je 0x421699
test byte [ecx + 0x1c], 1
je 0x421699
cmp byte [ecx + 0x19], 2
jb 0x421699
mov eax, dword [edi + 0x360]
sub eax, dword [edi + 0x358]
push 0x3e8
sar eax, 3
push eax
mov eax, dword [edi + 0x35c]
sub eax, dword [edi + 0x358]
mov edx, 0x48c034
sar eax, 3
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x7a
call fcn.00401080
mov ecx, dword [0x49cf18]
add esp, 0x14
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4216a9
cmp eax, 2
jne 0x422818
lea ecx, [edi + 0x218]
call fcn.0041c570
mov edi, dword [edi + 0x20c]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], edi
cmp edi, dword [esi + 0x210]
jne 0x421700
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x421706
test byte [ecx + 0x1c], 1
je 0x421706
cmp byte [ecx + 0x19], 2
jb 0x421706
push dword [esp + 0x24]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x7b
call fcn.00401020
add esp, 0xc
mov ecx, dword [0x49cf18]
mov dword [esp + 0x1c], 0
cmp edi, dword [esi + 0x210]
je 0x421f73
lea ebx, [ebx]
mov edx, dword [edi + 4]
mov ebx, dword [edi]
mov dword [esp + 0x18], ebx
test edx, edx
je 0x42173f
lea eax, [edx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [0x49cf18]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
test esi, esi
je 0x42177b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x421775
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x421775
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x4217b1
cmp byte [ecx + 0x19], 2
jb 0x4217b1
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x7c
call fcn.00401000
mov ecx, dword [0x49cf18]
add esp, 8
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x4217eb
cmp byte [ecx + 0x19], 2
jb 0x4217eb
push dword [esp + 0x1c]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x7d
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x421823
cmp byte [ecx + 0x19], 2
jb 0x421823
push dword [ebx]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x7e
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x42185c
cmp byte [ecx + 0x19], 2
jb 0x42185c
push dword [ebx + 4]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x7f
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x421895
cmp byte [ecx + 0x19], 2
jb 0x421895
push dword [ebx + 8]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x80
call fcn.0041cb20
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x4218ce
cmp byte [ecx + 0x19], 2
jb 0x4218ce
push dword [ebx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x81
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x421907
cmp byte [ecx + 0x19], 2
jb 0x421907
push dword [ebx + 0x18]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x82
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x421940
cmp byte [ecx + 0x19], 2
jb 0x421940
push dword [ebx + 0x1c]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x83
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x421979
cmp byte [ecx + 0x19], 2
jb 0x421979
push dword [ebx + 0x20]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x84
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x4219b2
cmp byte [ecx + 0x19], 2
jb 0x4219b2
push dword [ebx + 0x24]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x85
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x4219eb
cmp byte [ecx + 0x19], 2
jb 0x4219eb
push dword [ebx + 0x28]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x86
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x421a20
cmp byte [ecx + 0x19], 2
jb 0x421a20
push dword [ebx + 0x40]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x87
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x421a62
test byte [ecx + 0x1c], 1
je 0x421a62
cmp byte [ecx + 0x19], 2
jb 0x421a62
mov eax, dword [ebx + 0x4c]
sub eax, dword [ebx + 0x44]
push 0x64
sar eax, 3
push eax
mov eax, dword [ebx + 0x48]
sub eax, dword [ebx + 0x44]
mov edx, 0x48c034
sar eax, 3
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x88
call fcn.00401080
add esp, 0x14
lea ecx, [ebx + 0x50]
call fcn.0041c570
mov esi, dword [ebx + 0x44]
cmp esi, dword [ebx + 0x48]
jne 0x421aa6
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x421aab
test byte [eax + 0x1c], 1
je 0x421aab
cmp byte [eax + 0x19], 2
jb 0x421aab
push dword [esp + 0x1c]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x89
push dword [eax + 0x10]
call fcn.00401020
add esp, 0xc
mov eax, dword [0x49cf18]
mov edx, dword [esp + 0x18]
xor ebx, ebx
cmp esi, dword [edx + 0x48]
je 0x421f20
mov edi, edx
lea esp, [esp]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x10], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x421aea
lea eax, [ecx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [0x49cf18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], edx
mov dword [esp + 0x58], ecx
test edx, edx
je 0x421b2b
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x421b26
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
or edx, 0xffffffff
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x421b26
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421b60
cmp byte [eax + 0x19], 2
jb 0x421b60
push ebx
push dword [eax + 0x14]
mov edx, 0x48c034
push dword [eax + 0x10]
mov ecx, 0x8a
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421b9a
cmp byte [eax + 0x19], 2
jb 0x421b9a
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
push dword [ecx]
mov ecx, 0x8b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421bd7
cmp byte [eax + 0x19], 2
jb 0x421bd7
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
movzx ecx, word [ecx + 4]
push ecx
push dword [eax + 0x14]
mov ecx, 0x8c
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421c12
cmp byte [eax + 0x19], 2
jb 0x421c12
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
push dword [ecx + 8]
mov ecx, 0x8d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041cb20
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421c4d
cmp byte [eax + 0x19], 2
jb 0x421c4d
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x8e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041cb20
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421c81
cmp byte [eax + 0x19], 2
jb 0x421c81
push dword [eax + 0x14]
mov edx, 0x48c034
push dword [eax + 0x10]
mov ecx, 0x8f
call fcn.00401000
mov eax, dword [0x49cf18]
add esp, 8
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421cbd
cmp byte [eax + 0x19], 2
jb 0x421cbd
mov ecx, dword [esp + 0x10]
add ecx, 0x28
push ecx
push dword [eax + 0x14]
mov edx, 0x48c034
push dword [eax + 0x10]
mov ecx, 0x90
call fcn.00401580
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421cf8
cmp byte [eax + 0x19], 2
jb 0x421cf8
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
push dword [ecx + 0x38]
mov ecx, 0x91
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421d33
cmp byte [eax + 0x19], 2
jb 0x421d33
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
push dword [ecx + 0x3c]
mov ecx, 0x92
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421d6f
cmp byte [eax + 0x19], 2
jb 0x421d6f
mov ecx, dword [esp + 0x10]
add ecx, 0x40
push ecx
push dword [eax + 0x14]
mov edx, 0x48c034
push dword [eax + 0x10]
mov ecx, 0x93
call fcn.00401580
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421daa
cmp byte [eax + 0x19], 2
jb 0x421daa
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
push dword [ecx + 0x50]
mov ecx, 0x94
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421de5
cmp byte [eax + 0x19], 2
jb 0x421de5
mov ecx, dword [esp + 0x10]
mov edx, 0x48c034
push dword [ecx + 0x54]
mov ecx, 0x95
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421e2c
cmp byte [eax + 0x19], 2
jb 0x421e2c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0x96
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
mov edx, dword [esp + 0x7c]
add esp, 0xc
jmp 0x421e30
mov edx, dword [esp + 0x10]
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421e78
cmp byte [eax + 0x19], 2
jb 0x421e78
mov al, byte [edx + 0x5c]
xor ecx, ecx
test al, al
mov eax, dword [0x49cf18]
setne cl
mov edx, 0x48c034
push ecx
push dword [eax + 0x14]
mov ecx, 0x97
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
mov edx, dword [esp + 0x7c]
add esp, 0xc
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421ecb
cmp byte [eax + 0x19], 2
jb 0x421ecb
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x60]
push dword [ecx + 0x3a8]
mov edx, 0x48c034
push dword [ecx + 0x3ac]
mov ecx, 0x98
push eax
mov eax, dword [0x49cf18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401080
mov eax, dword [0x49cf18]
mov edx, dword [esp + 0x84]
add esp, 0x14
cmp eax, 0x49cf18
je 0x421f0b
test byte [eax + 0x1c], 1
je 0x421f0b
cmp byte [eax + 0x19], 2
jb 0x421f0b
mov al, byte [edx + 0x64]
xor ecx, ecx
test al, al
mov eax, dword [0x49cf18]
setne cl
mov edx, 0x48c034
push ecx
push dword [eax + 0x14]
mov ecx, 0x99
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
add esi, 8
inc ebx
cmp esi, dword [edi + 0x48]
jne 0x421ac0
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, connect
lea ecx, [edx + 0x50]
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x421f4d
cmp eax, 0x80000000
jle 0x421f4d
lock bts dword [ecx], 0x1e
jb 0x421f4d
call fcn.0041c4d0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x14]
inc dword [esp + 0x1c]
add edi, 8
mov dword [esp + 0x28], edi
cmp edi, dword [esi + 0x210]
je 0x421f6f
mov ecx, dword [0x49cf18]
jmp 0x421720
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
add ecx, 0x218
mov eax, connect
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x421fa7
cmp eax, 0x80000000
jle 0x421fa7
lock bts dword [ecx], 0x1e
jb 0x421fa7
call fcn.0041c4d0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], esi
lea eax, [esi + 0x22c]
mov ecx, eax
mov dword [esp + 0x6c], eax
call fcn.0041c570
mov edi, dword [esi + 0x220]
mov dword [esp + 0x18], edi
cmp edi, dword [esi + 0x224]
jne 0x422008
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x42200e
test byte [ecx + 0x1c], 1
je 0x42200e
cmp byte [ecx + 0x19], 2
jb 0x42200e
push dword [esp + 0x24]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x9a
call fcn.00401020
add esp, 0xc
mov ecx, dword [0x49cf18]
mov dword [esp + 0x1c], 0
cmp edi, dword [esi + 0x224]
je 0x4227da
mov edx, dword [edi + 4]
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test edx, edx
je 0x422041
lea eax, [edx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [0x49cf18]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x68], edx
test esi, esi
je 0x42207d
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x422077
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x422077
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x4220b3
cmp byte [ecx + 0x19], 2
jb 0x4220b3
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0x9b
call fcn.00401000
mov ecx, dword [0x49cf18]
add esp, 8
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x4220ed
cmp byte [ecx + 0x19], 2
jb 0x4220ed
push dword [esp + 0x1c]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x9c
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
mov esi, dword [esp + 0x14]
je 0x422129
cmp byte [ecx + 0x19], 2
jb 0x422129
push dword [esi]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x9d
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x422162
cmp byte [ecx + 0x19], 2
jb 0x422162
push dword [esi + 4]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x9e
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x42219b
cmp byte [ecx + 0x19], 2
jb 0x42219b
push dword [esi + 8]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x9f
call fcn.0041cb20
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x4221d4
cmp byte [ecx + 0x19], 2
jb 0x4221d4
push dword [esi + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa0
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x42220d
cmp byte [ecx + 0x19], 2
jb 0x42220d
push dword [esi + 0x18]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa1
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x422246
cmp byte [ecx + 0x19], 2
jb 0x422246
push dword [esi + 0x1c]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa2
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x42227f
cmp byte [ecx + 0x19], 2
jb 0x42227f
push dword [esi + 0x20]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa3
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x4222b8
cmp byte [ecx + 0x19], 2
jb 0x4222b8
push dword [esi + 0x24]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa4
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x4222f1
cmp byte [ecx + 0x19], 2
jb 0x4222f1
push dword [esi + 0x28]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa5
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x42232a
cmp byte [ecx + 0x19], 2
jb 0x42232a
push dword [esi + 0x2c]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa6
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x42235f
cmp byte [ecx + 0x19], 2
jb 0x42235f
push dword [esi + 0x30]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa7
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x4223a1
test byte [ecx + 0x1c], 1
je 0x4223a1
cmp byte [ecx + 0x19], 2
jb 0x4223a1
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x34]
push 0x64
sar eax, 3
push eax
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
mov edx, 0x48c034
sar eax, 3
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa8
call fcn.00401080
add esp, 0x14
mov ecx, dword [esp + 0x14]
add ecx, 0x40
call fcn.0041c570
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x34]
cmp esi, dword [eax + 0x38]
jne 0x4223f3
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x4223f9
test byte [ecx + 0x1c], 1
je 0x4223f9
cmp byte [ecx + 0x19], 2
jb 0x4223f9
push dword [esp + 0x1c]
mov edx, 0x48c034
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa9
call fcn.00401020
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [0x49cf18]
mov dword [esp + 0x20], 0
cmp esi, dword [eax + 0x38]
je 0x422749
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x10], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x20], eax
test eax, eax
je 0x42243d
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [0x49cf18]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], eax
test edx, edx
je 0x42247f
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x422479
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
or edx, 0xffffffff
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x422479
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x4224b6
cmp byte [ecx + 0x19], 2
jb 0x4224b6
push ebx
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0xaa
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x4224f2
cmp byte [ecx + 0x19], 2
jb 0x4224f2
mov eax, dword [esp + 0x10]
mov edx, 0x48c034
push dword [eax]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xab
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x422531
cmp byte [ecx + 0x19], 2
jb 0x422531
mov eax, dword [esp + 0x10]
mov edx, 0x48c034
movzx eax, word [eax + 4]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xac
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x42256e
cmp byte [ecx + 0x19], 2
jb 0x42256e
mov eax, dword [esp + 0x10]
mov edx, 0x48c034
push dword [eax + 8]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xad
call fcn.0041cb20
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x4225ab
cmp byte [ecx + 0x19], 2
jb 0x4225ab
mov eax, dword [esp + 0x10]
mov edx, 0x48c034
push dword [eax + 0x10]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xae
call fcn.0041cb20
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x4225e1
cmp byte [ecx + 0x19], 2
jb 0x4225e1
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0xaf
call fcn.00401000
mov ecx, dword [0x49cf18]
add esp, 8
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x42261f
cmp byte [ecx + 0x19], 2
jb 0x42261f
mov eax, dword [esp + 0x10]
add eax, 0x28
push eax
push dword [ecx + 0x14]
mov edx, 0x48c034
push dword [ecx + 0x10]
mov ecx, 0xb0
call fcn.00401580
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x42265c
cmp byte [ecx + 0x19], 2
jb 0x42265c
mov eax, dword [esp + 0x10]
mov edx, 0x48c034
push dword [eax + 0x38]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xb1
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x422699
cmp byte [ecx + 0x19], 2
jb 0x422699
mov eax, dword [esp + 0x10]
mov edx, 0x48c034
push dword [eax + 0x3c]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xb2
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
mov eax, dword [esp + 0x10]
je 0x4226f2
cmp byte [ecx + 0x19], 2
jb 0x4226f2
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x44]
push dword [ecx + 0x3b0]
mov edx, 0x48c034
push dword [ecx + 0x3b4]
mov ecx, 0xb3
push eax
mov eax, dword [0x49cf18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401080
mov ecx, dword [0x49cf18]
mov eax, dword [esp + 0x8c]
add esp, 0x14
cmp ecx, 0x49cf18
je 0x422734
test byte [ecx + 0x1c], 1
je 0x422734
cmp byte [ecx + 0x19], 2
jb 0x422734
mov al, byte [eax + 0x48]
xor ecx, ecx
test al, al
mov eax, dword [0x49cf18]
setne cl
mov edx, 0x48c034
push ecx
push dword [eax + 0x14]
mov ecx, 0xb4
push dword [eax + 0x10]
call fcn.00401020
mov ecx, dword [0x49cf18]
add esp, 0xc
add esi, 8
inc ebx
cmp esi, dword [edi + 0x38]
jne 0x422412
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov eax, connect
add ecx, 0x40
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x4227b8
cmp eax, 0x80000000
jle 0x4227b8
lock bts dword [ecx], 0x1e
jb 0x4227b8
mov esi, dword [ecx + 4]
test esi, esi
jne 0x4227b1
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, eax
test edx, edx
je 0x42287b
mov esi, dword [esp + 0x14]
mov ecx, edx
xor eax, eax
add esi, 0x44
lock cmpxchg dword [esi], ecx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov esi, eax
test esi, esi
je 0x4227af
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4227b1
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x28]
inc dword [esp + 0x1c]
add edi, 8
mov dword [esp + 0x18], edi
cmp edi, dword [eax + 0x224]
je 0x4227da
mov ecx, dword [0x49cf18]
jmp 0x422022
mov ecx, dword [esp + 0x6c]
mov eax, connect
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x422812
cmp eax, 0x80000000
jle 0x422812
lock bts dword [ecx], 0x1e
jb 0x422812
call fcn.0041c4d0
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
call esi
mov ecx, dword [0x49cf18]
jmp 0x42281e
mov ecx, dword [0x49cf18]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
inc dword [esp + 0x24]
add ebx, 8
mov dword [esp + 0x2c], ebx
cmp ebx, dword [0x504980]
jne 0x420eb7
mov edi, dword [esp + 0x34]
mov eax, connect
mov ecx, 0x504988
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x422864
cmp eax, 0x80000000
jle 0x422864
lock bts dword [ecx], 0x1e
jb 0x422864
call fcn.0041c4d0
push eax
call esi
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4228ae
cmp eax, 1
je 0x4228ae
xor ebx, ebx
jmp 0x42352d
push str.boost::thread_resource_error
push 0xb
lea ecx, [esp + 0x88]
call fcn.0041bf40
mov dword [esp + 0x80], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xbc], 6
call fcn.0041bed0
mov ebx, 0x504a14
mov ecx, ebx
call fcn.0041c570
mov esi, dword [0x504a08]
cmp esi, dword [0x504a0c]
jne 0x4228f8
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x4228fd
test byte [eax + 0x1c], 1
je 0x4228fd
cmp byte [eax + 0x19], 2
jb 0x4228fd
push dword [eax + 0x14]
mov edx, 0x48c034
push dword [eax + 0x10]
mov ecx, 0xb5
call fcn.00401000
add esp, 8
mov eax, dword [0x49cf18]
mov dword [esp + 0x18], 0
cmp esi, dword [0x504a0c]
je 0x422a86
mov edx, dword [esi + 4]
mov ebx, dword [esi]
test edx, edx
je 0x42292b
lea eax, [edx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [0x49cf18]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
test edi, edi
je 0x422962
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42295d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x42295d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x422a6a
test byte [eax + 0x1c], 1
je 0x422996
cmp byte [eax + 0x19], 2
jb 0x422996
push dword [eax + 0x14]
mov edx, 0x48c034
push dword [eax + 0x10]
mov ecx, 0xb6
call fcn.00401000
mov eax, dword [0x49cf18]
add esp, 8
cmp eax, 0x49cf18
je 0x422a6a
test byte [eax + 0x1c], 1
je 0x4229ce
cmp byte [eax + 0x19], 2
jb 0x4229ce
push dword [esp + 0x18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0xb7
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x422a6a
test byte [eax + 0x1c], 1
je 0x422a04
cmp byte [eax + 0x19], 2
jb 0x422a04
push dword [ebx]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0xb8
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x422a6a
test byte [eax + 0x1c], 1
je 0x422a37
cmp byte [eax + 0x19], 2
jb 0x422a37
push dword [ebx + 4]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0xb9
push dword [eax + 0x10]
call fcn.00401020
mov eax, dword [0x49cf18]
add esp, 0xc
cmp eax, 0x49cf18
je 0x422a6a
test byte [eax + 0x1c], 1
je 0x422a6a
cmp byte [eax + 0x19], 2
jb 0x422a6a
push dword [ebx + 8]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0xba
push dword [eax + 0x10]
call fcn.0041cb20
mov eax, dword [0x49cf18]
add esp, 0xc
inc dword [esp + 0x18]
mov edi, dword [esp + 0x34]
add esi, 8
cmp esi, dword [0x504a0c]
jne 0x422911
mov ebx, 0x504a14
mov eax, connect
lock xadd dword [ebx], eax
test eax, 0x40000000
jne 0x422ab2
cmp eax, 0x80000000
jle 0x422ab2
lock bts dword [ebx], 0x1e
jb 0x422ab2
mov ecx, ebx
call fcn.0041c4d0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x49cf18]
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422aee
cmp byte [edx + 0x19], 2
jb 0x422aee
push dword [edx + 0x14]
mov ecx, 0xbb
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401000
mov edx, dword [0x49cf18]
add esp, 8
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422b29
cmp byte [edx + 0x19], 2
jb 0x422b29
push 0x504aa4
push dword [edx + 0x14]
mov ecx, 0xbc
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401580
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422b64
cmp byte [edx + 0x19], 2
jb 0x422b64
push 0x504ae4
push dword [edx + 0x14]
mov ecx, 0xbd
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401580
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422b9f
cmp byte [edx + 0x19], 2
jb 0x422b9f
push 0x504b24
push dword [edx + 0x14]
mov ecx, 0xbe
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401580
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422bdb
cmp byte [edx + 0x19], 2
jb 0x422bdb
push dword [0x504a04]
mov ecx, 0xbf
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422c25
cmp byte [edx + 0x19], 2
jb 0x422c25
cmp dword [0x5048e8], 0x10
mov eax, 0x5048d4
cmovae eax, dword [0x5048d4]
push eax
push dword [edx + 0x14]
mov ecx, 0xc0
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401580
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422c6f
cmp byte [edx + 0x19], 2
jb 0x422c6f
cmp dword [0x504900], 0x10
mov eax, 0x5048ec
cmovae eax, dword [0x5048ec]
push eax
push dword [edx + 0x14]
mov ecx, 0xc1
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401580
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422cab
cmp byte [edx + 0x19], 2
jb 0x422cab
push dword [0x504904]
mov ecx, 0xc2
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422cf5
cmp byte [edx + 0x19], 2
jb 0x422cf5
cmp dword [0x50491c], 0x10
mov eax, 0x504908
cmovae eax, dword [0x504908]
push eax
push dword [edx + 0x14]
mov ecx, 0xc3
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401580
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422d31
cmp byte [edx + 0x19], 2
jb 0x422d31
push dword [0x50492c]
mov ecx, 0xc4
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422d6d
cmp byte [edx + 0x19], 2
jb 0x422d6d
push dword [0x504930]
mov ecx, 0xc5
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422da9
cmp byte [edx + 0x19], 2
jb 0x422da9
push dword [0x504938]
mov ecx, 0xc6
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422de5
cmp byte [edx + 0x19], 2
jb 0x422de5
push dword [0x50493c]
mov ecx, 0xc7
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422e21
cmp byte [edx + 0x19], 2
jb 0x422e21
push dword [0x504940]
mov ecx, 0xc8
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422e5d
cmp byte [edx + 0x19], 2
jb 0x422e5d
push dword [0x504944]
mov ecx, 0xc9
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422e99
cmp byte [edx + 0x19], 2
jb 0x422e99
push dword [0x504948]
mov ecx, 0xca
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422ed5
cmp byte [edx + 0x19], 2
jb 0x422ed5
push dword [0x50494c]
mov ecx, 0xcb
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422f11
cmp byte [edx + 0x19], 2
jb 0x422f11
push dword [0x504950]
mov ecx, 0xcc
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422f4d
cmp byte [edx + 0x19], 2
jb 0x422f4d
push dword [0x504954]
mov ecx, 0xcd
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422f89
cmp byte [edx + 0x19], 2
jb 0x422f89
push dword [0x504958]
mov ecx, 0xce
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x422fc5
cmp byte [edx + 0x19], 2
jb 0x422fc5
push dword [0x50495c]
mov ecx, 0xcf
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423001
cmp byte [edx + 0x19], 2
jb 0x423001
push dword [0x504960]
mov ecx, 0xd0
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x42303d
cmp byte [edx + 0x19], 2
jb 0x42303d
push dword [0x504964]
mov ecx, 0xd1
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423079
cmp byte [edx + 0x19], 2
jb 0x423079
push dword [0x504968]
mov ecx, 0xd2
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4230b5
cmp byte [edx + 0x19], 2
jb 0x4230b5
push dword [0x50496c]
mov ecx, 0xd3
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4230f1
cmp byte [edx + 0x19], 2
jb 0x4230f1
push dword [0x504970]
mov ecx, 0xd4
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x42312d
cmp byte [edx + 0x19], 2
jb 0x42312d
push dword [0x504934]
mov ecx, 0xd5
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423169
cmp byte [edx + 0x19], 2
jb 0x423169
push dword [0x504974]
mov ecx, 0xd6
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4231a5
cmp byte [edx + 0x19], 2
jb 0x4231a5
push dword [0x504978]
mov ecx, 0xd7
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4231fb
cmp byte [edx + 0x19], 2
jb 0x4231fb
mov eax, dword [0x504984]
sub eax, dword [0x50497c]
push 0x14
sar eax, 3
push eax
mov eax, dword [0x504980]
sub eax, dword [0x50497c]
mov ecx, 0xd8
sar eax, 3
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401080
mov edx, dword [0x49cf18]
add esp, 0x14
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423240
cmp byte [edx + 0x19], 2
jb 0x423240
mov eax, dword [0x504a00]
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0xd9
push dword [eax + 0x10]
call fcn.00401020
mov edx, dword [0x49cf18]
mov edi, dword [esp + 0x40]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423296
cmp byte [edx + 0x19], 2
jb 0x423296
mov eax, dword [0x504a10]
sub eax, dword [0x504a08]
push 0x64
sar eax, 3
push eax
mov eax, dword [0x504a0c]
sub eax, dword [0x504a08]
mov ecx, 0xda
sar eax, 3
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401080
mov edx, dword [0x49cf18]
add esp, 0x14
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4232d2
cmp byte [edx + 0x19], 2
jb 0x4232d2
push dword [0x504a1c]
mov ecx, 0xdb
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.0041cb20
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x42330e
cmp byte [edx + 0x19], 2
jb 0x42330e
push dword [0x504a24]
mov ecx, 0xdc
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.0041cb20
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423357
cmp byte [edx + 0x19], 2
jb 0x423357
mov ax, word [0x504a54]
movzx eax, ax
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0xdd
push dword [eax + 0x10]
call fcn.00401020
mov edx, dword [0x49cf18]
mov edi, dword [esp + 0x40]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4233a0
cmp byte [edx + 0x19], 2
jb 0x4233a0
mov ax, word [0x504a56]
movzx eax, ax
push eax
mov eax, dword [0x49cf18]
mov edx, 0x48c034
push dword [eax + 0x14]
mov ecx, 0xde
push dword [eax + 0x10]
call fcn.00401020
mov edx, dword [0x49cf18]
mov edi, dword [esp + 0x40]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4233dc
cmp byte [edx + 0x19], 2
jb 0x4233dc
push dword [0x504a6c]
mov ecx, 0xdf
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423418
cmp byte [edx + 0x19], 2
jb 0x423418
push dword [0x504a5c]
mov ecx, 0xe0
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423454
cmp byte [edx + 0x19], 2
jb 0x423454
push dword [0x504a60]
mov ecx, 0xe1
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x423490
cmp byte [edx + 0x19], 2
jb 0x423490
push dword [0x504a64]
mov ecx, 0xe2
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4234c8
cmp byte [edx + 0x19], 2
jb 0x4234c8
push dword [0x504a68]
mov ecx, 0xe3
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401020
mov edx, dword [0x49cf18]
add esp, 0xc
cmp edx, 0x49cf18
je 0x4234f4
test byte [edx + 0x1c], 1
je 0x4234f4
cmp byte [edx + 0x19], 2
jb 0x4234f4
push dword [edx + 0x14]
mov ecx, 0xe4
push dword [edx + 0x10]
mov edx, 0x48c034
call fcn.00401000
add esp, 8
xor ebx, ebx
jmp 0x42352d
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x423528
test byte [eax + 0x1c], 8
je 0x423528
cmp byte [eax + 0x19], 1
jb 0x423528
mov ecx, 0x5d
push dword [eax + 0x14]
mov edx, 0x48c034
push dword [eax + 0x10]
call fcn.00401000
add esp, 8
mov ebx, 0xfffffffc
mov byte [esp + 0xb8], 4
test edi, edi
je 0x423560
or esi, 0xffffffff
lea eax, [edi + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x423560
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
mov edx, esi
lock xadd dword [eax], edx
jne 0x423560
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov byte [esp + 0xb8], 3
mov esi, dword [esp + 0x50]
or edi, 0xffffffff
test esi, esi
je 0x423597
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x423597
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x423597
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [esp + 0xb8], 2
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4235cb
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x4235cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x4235cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [esp + 0xb8], 1
mov esi, dword [esp + 0x68]
test esi, esi
je 0x4235ff
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x4235ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x4235ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [esp + 0xb8], 0
mov esi, dword [esp + 0x60]
test esi, esi
je 0x423633
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x423633
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x423633
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [esp + 0xb8], 0xffffffff
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x423669
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x423669
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x423669
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret