Function at 0x586670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x180
push ebx
mov ebx, dword [esp + 0x188]
xor eax, eax
push ebp
push esi
push 0x14c
mov ebp, dword [ebx + 0xc]
xorps xmm0, xmm0
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
movlpd qword [esp + 0x184], xmm0
movlpd qword [esp + 0x18c], xmm0
call fcn.00598150
movzx edx, word [ebx + 0x6e]
lea ecx, [ebx + 0x70]
movzx eax, word [ebx + 0x6c]
add esp, 0xc
imul eax, edx
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x90], ebp
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x194]
mov eax, ecx
mov dword [esp + 0x188], edx
shr eax, 8
and ecx, 0xfffffeff
and eax, 1
mov dword [esp + 0x194], ecx
cmp word [ebx + 0x66], 0
mov dword [esp + 0x154], eax
lea eax, [ebp + 0x100]
mov dword [esp + 0x34], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], ecx
je 0x58674e
test dword [ebx + 0x48], 0x2000
jne 0x58674e
xor eax, eax
jmp 0x586753
mov eax, 1
cmp word [ebx + 0x64], 0
mov dword [esp + 0x9c], eax
ja 0x58676e
test dword [ebx + 0x48], 0x2000
jne 0x58676e
xor eax, eax
jmp 0x586773
mov eax, 1
mov dword [esp + 0x98], eax
xor esi, esi
movzx eax, word [ebx + 0x62]
dec eax
mov dword [esp + 0xb8], esi
cmp eax, 5
ja case.default.0x586791
jmp dword [eax*4 + 0x5882ec]
mov dword [esp + 0xc4], 0xd
jmp 0x5867f8
mov dword [esp + 0xc4], 0xa
jmp 0x5867f8
mov dword [esp + 0xc4], 0xd0a
jmp 0x5867f8
mov esi, 1
mov dword [esp + 0xc4], 0xd0a
mov dword [esp + 0xb8], esi
jmp 0x5867f8
mov esi, 2
mov dword [esp + 0xc4], 0xd0a
mov dword [esp + 0xb8], esi
jmp 0x5867f8
mov dword [esp + 0xc4], esi
movzx ecx, word [ebx + 0x60]
mov dword [esp + 0xbc], SysStringLen
mov dword [esp + 0xc0], 0
push edi
cmp ecx, 1
jne 0x586823
mov edi, ecx
mov dword [esp + 0xcc], edi
jmp 0x586839
xor eax, eax
cmp ecx, 2
sete al
inc eax
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 0xcc], eax
mov ecx, dword [ebx + 0x40]
mov eax, ecx
shr eax, 4
and eax, 1
mov dword [esp + 0xd0], SysStringLen
mov dword [esp + 0xd8], eax
lea eax, [ebp + 0x340]
mov dword [esp + 0xdc], eax
movzx eax, word [ebx + 0x6e]
mov dword [esp + 0xe4], eax
movzx eax, word [ebx + 0x6c]
mov dword [esp + 0xe8], eax
mov eax, ecx
shr eax, 9
and eax, 1
mov dword [esp + 0xd4], 0
mov dword [esp + 0x14c], eax
mov eax, ecx
shr eax, 0x15
and eax, 1
mov dword [esp + 0x150], eax
mov eax, ecx
shr eax, 0x13
and eax, 1
mov dword [esp + 0x154], eax
mov eax, ecx
shr eax, 0x11
and eax, 1
mov dword [esp + 0x15c], eax
test ecx, 0x80000
je 0x586937
cmp esi, 1
jne 0x5868da
mov dword [esp + 0xc0], 0x2029
jmp 0x586908
cmp esi, 2
jne 0x5868ec
mov dword [esp + 0xc0], 0xd
jmp 0x586908
mov eax, dword [esp + 0xc8]
movzx eax, al
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
test esi, esi
je 0x586913
mov dword [esp + 0xc4], 0xa
cmp edi, 1
mov dword [esp + 0xd4], 0xa
mov eax, 0xd
mov ecx, 0x2029
cmove eax, ecx
mov dword [esp + 0xd0], eax
jmp 0x586942
mov dword [esp + 0x158], 0
movzx eax, word [edx + 2]
cmp word [edx + eax*2], 0x78
lea edx, [edx + eax*2]
je 0x586942
movzx eax, word [ebx + 0x68]
lea ebp, [edx + 4]
push dword [ebx + 8]
mov esi, dword [ebx]
inc eax
push eax
mov ecx, esi
mov dword [esp + 0x5c], 0x14
call dword [0x5cb3f0]
call esi
mov ecx, eax
add esp, 8
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x586b73
movzx eax, word [ebx + 0x68]
inc eax
push eax
push 1
push ecx
call fcn.00598150
push ebp
push dword [esp + 0x48]
lea eax, [esp + 0x44]
push eax
call fcn.0056dea0
add esp, 0x18
test eax, eax
jne 0x5869cc
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
push dword [esp + 0x48]
call dword [0x5cb3f0]
call esi
add esp, 8
mov eax, 0xffffffd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
mov edx, dword [esp + 0x198]
cmp edx, 1
jne 0x5869f7
test byte [ebx + 0x48], 0x80
je 0x5869f1
test dword [ebx + 0x40], 0x10000
jne 0x5869f1
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x5c], ecx
jmp 0x586a0f
mov ecx, dword [esp + 0x54]
jmp 0x586a16
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
lea ecx, [eax + 4]
mov dword [esp + 0x54], ecx
cmp edx, 2
jne 0x586a16
mov dword [esp + 0x68], ecx
add ecx, 4
mov dword [esp + 0x54], ecx
test dword [ebx + 0x40], 0x800100
je 0x586a2a
mov dword [esp + 0x6c], ecx
add ecx, 4
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x74], 0
je 0x586a3c
mov dword [esp + 0x74], ecx
add ecx, 4
mov dword [esp + 0x54], ecx
cmp dword [esp + 0xa4], 0
je 0x586a51
mov eax, ecx
add ecx, 4
mov dword [esp + 0x54], ecx
jmp 0x586a55
mov eax, dword [esp + 0x58]
mov edx, ecx
test cl, 4
je 0x586a65
lea ecx, [edx + 4]
mov dword [esp + 0x54], ecx
mov edx, ecx
test eax, eax
cmove eax, edx
cmp dword [esp + 0x78], 0
mov dword [esp + 0x58], eax
je 0x586a8d
movzx eax, word [ebx + 0x68]
inc eax
push eax
push 0
push dword [esp + 0x4c]
call fcn.00598150
mov ecx, dword [esp + 0x60]
add esp, 0xc
movzx eax, word [ebx + 0x68]
mov edi, ebp
sub edi, dword [esp + 0x38]
inc eax
push dword [ebx + 8]
mov esi, dword [ebx]
sar edi, 1
lea eax, [ecx + eax*8]
mov ecx, esi
mov dword [esp + 0x54], eax
xor eax, eax
cmp dword [esp + 0xb0], eax
setne al
add eax, 4
imul eax, edi
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x586aeb
push ebx
push dword [esp + 0x48]
call fcn.00589be0
add esp, 8
mov eax, 0xffffffd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
lea esi, [edi*4]
push esi
push 0
push eax
call fcn.00598150
movzx ecx, word [ebx + 0x68]
add esp, 0xc
mov eax, dword [esp + 0x50]
lea eax, [eax + ecx*4]
add eax, 4
test dword [ebx + 0x40], 0x80010000
mov dword [esp + 0x14], eax
jne 0x586b3f
cmp dword [esp + 0xb0], 0
jne 0x586b3f
push 1
push 0
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x44]
push eax
call fcn.0057dae0
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0058b950
add esp, 0xc
cmp dword [esp + 0x14], 0x10000
jle 0x586b83
push ebx
push dword [esp + 0x40]
call fcn.00589be0
push ebx
push dword [esp + 0x50]
call fcn.00589be0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0xffffffd0
pop ebx
add esp, 0x180
ret
cmp dword [esp + 0xac], 0
je 0x586bb3
mov eax, dword [esp + 0x3c]
push edi
add eax, esi
push 0
push eax
mov dword [esp + 0x54], eax
call fcn.00598150
push 0
push dword [esp + 0x48]
lea eax, [esp + 0x44]
push eax
call fcn.0058bcb0
add esp, 0x18
push dword [ebx + 8]
mov esi, dword [ebx]
mov ecx, esi
push 0x5c
call dword [0x5cb3f0]
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x5882c7
push 0x5c
push 0
push edi
call fcn.00598150
add esp, 0xc
mov dword [edi + 0x28], ebx
mov esi, dword [ebx]
mov ecx, esi
push dword [ebx + 8]
push 0x1000
call dword [0x5cb3f0]
call esi
add esp, 8
mov dword [edi + 0x30], eax
mov esi, dword [ebx]
mov ecx, esi
push dword [ebx + 8]
push 0x800
call dword [0x5cb3f0]
call esi
mov ecx, eax
add esp, 8
mov eax, dword [edi + 0x30]
mov dword [edi + 0x34], ecx
test eax, eax
je 0x588298
test ecx, ecx
je 0x588284
cmp dword [0x72eab4], 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax + 4], 0
mov eax, dword [edi + 0x34]
mov dword [eax], 0
mov eax, dword [edi + 0x34]
mov dword [eax + 4], 0
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x58], 0xffffffff
jne 0x586cc0
mov eax, 0x72ea6f
mov dword [0x72eab4], 1
and eax, 0xfffffff0
mov dword [0x72eaac], eax
mov dword [eax], 0x80000000
mov dword [eax + 0x10], 0x7fffffff
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], SysStringLen
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0x7fffffff
push dword [esp + 0x14]
mov dword [esp + 0x34], edi
push 0
push 0
push 5
push 5
push 0x11
push 0
push edi
call fcn.0058c0e0
movzx eax, word [ebx + 0x68]
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0058ab90
mov eax, dword [esp + 0x84]
add esp, 0x28
test eax, eax
je 0x586d22
cmp dword [edi], 0
jne 0x586d44
add eax, 0x20
push eax
push 0x8d
push 0
push 1
push 1
push edi
call fcn.00581ba0
add esp, 0x18
test eax, eax
je 0x586d22
mov byte [eax], 0x89
cmp dword [edi], 0
jne 0x586d44
push 0x18
push 0x8d
push 0
push 0xc
push 1
push edi
call fcn.00581ba0
add esp, 0x18
test eax, eax
je 0x586d44
mov byte [eax], 0x89
push 0
push 0xc
push 0
push 1
push 0x20
push edi
call fcn.0058d570
push 4
push 0x81
push 0
push 2
push 0x20
push edi
call fcn.0058d570
push 0xc
push 0x81
push 0
push 0xc
push 0x20
push edi
call fcn.0058d570
add esp, 0x48
push 0
push 0x81
push 0
push 3
push 0x20
push edi
call fcn.0058d570
push 0x28
push 0x81
push 0
push 1
push 0x25
push edi
call fcn.0058d570
push 4
push 0x83
push 0
push 0xb
push 0x20
push edi
call fcn.0058d570
add esp, 0x48
push 8
push 0x83
push 0
push 0xa
push 0x20
push edi
call fcn.0058d570
push 1
push 0x40
push 0
push 1
push 0
push 1
push 0x60
push edi
call fcn.0058d7b0
push 0
push 1
push 0x10
push 0x8d
push 0x20
push edi
call fcn.0058d570
mov eax, dword [esp + 0xd0]
add esp, 0x50
cmp eax, dword [esp + 0x84]
jge 0x586e13
lea eax, [esp + 0x30]
push eax
call fcn.0058aa00
add esp, 4
mov esi, dword [esp + 0x198]
cmp esi, 2
jne 0x586e37
push 0xffffffffffffffff
push 0x40
push dword [esp + 0x70]
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
mov eax, dword [esp + 0x70]
test eax, eax
je 0x586e54
push 0
push 0x40
push eax
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
mov eax, dword [esp + 0x74]
test eax, eax
je 0x586e71
push 0
push 0x40
push eax
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp dword [ebx + 0x40], 0
jl 0x586f73
lea eax, [esp + 0x30]
push eax
call fcn.00588480
push edi
mov dword [esp + 0x2c], eax
call fcn.0058d340
add esp, 8
mov dword [esp + 0x10], eax
test dword [ebx + 0x40], 0x10000
jne 0x586f80
cmp esi, 1
jne 0x586ebd
lea eax, [esp + 0x30]
push eax
call fcn.00583700
add esp, 4
test eax, eax
jne 0x586f85
mov eax, dword [ebx + 0x48]
test al, 0x10
je 0x586f50
mov eax, dword [esp + 0x34]
test byte [eax + 0x48], 0x20
movzx ecx, word [eax + 0x58]
mov esi, ecx
mov edx, ecx
je 0x586f36
mov eax, 0xff
cmp cx, ax
ja 0x586ef4
mov eax, dword [esp + 0x90]
movzx edx, byte [esi + eax]
cmp ecx, 0x7f
jbe 0x586f36
cmp dword [esp + 0x154], 0
jne 0x586f08
cmp dword [esp + 0x15c], 0
je 0x586f36
mov eax, esi
and esi, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x69d208]
shl eax, 7
add eax, esi
movzx eax, word [eax*2 + 0x6a1608]
lea eax, [eax + eax*2]
mov ax, word [eax*4 + 0x698ffc]
add ax, cx
movzx edx, ax
push 0
push edx
push ecx
lea eax, [esp + 0x3c]
push eax
call fcn.005832c0
mov esi, dword [esp + 0x1a8]
add esp, 0x10
jmp 0x586f80
test eax, 0x200
je 0x586f63
lea eax, [esp + 0x30]
push eax
call fcn.005840c0
jmp 0x586f7d
test al, 0x40
je 0x586f80
lea eax, [esp + 0x30]
push eax
call fcn.005847e0
jmp 0x586f7d
push edi
call fcn.0058d340
mov dword [esp + 0x14], eax
add esp, 4
cmp esi, 1
jne 0x586fd5
cmp word [ebx + 0x66], 0
jbe 0x586fd5
test dword [ebx + 0x40], 0x10000
jne 0x586fd5
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0058d570
movzx eax, word [ebx + 0x66]
add eax, eax
push eax
push 0x40
push 0
push 2
push 0
push 3
push 0x60
push edi
call fcn.0058d7b0
push 0
push 0xc
push 0
push 3
push 4
push edi
call fcn.0058bf60
add esp, 0x50
mov dword [esp + 0x20], eax
cmp dword [esp + 0x5c], 0
je 0x587005
mov edx, dword [ebx + 0x48]
mov ecx, edx
movzx eax, word [ebx + 0x5c]
shr ecx, 4
and ecx, 1
shr edx, 8
push ecx
and edx, 1
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0058b5c0
add esp, 0x10
mov dword [esp + 0x28], eax
push 0
push 2
push dword [esp + 0x5c]
push 0x8d
push 0x20
push edi
call fcn.0058d570
push 0x10
push 0x8d
push 0
push 9
push 0x20
push edi
call fcn.0058d570
mov eax, dword [esp + 0xa8]
add esp, 0x30
test eax, eax
je 0x587050
push 0
push 0x40
push eax
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x587080
sub ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ecx, 2
sar ecx, 1
push 0
push 2
mov eax, dword [eax + ecx*4]
sar eax, 3
push eax
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x54]
je 0x58709f
push 0
push 2
push eax
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp esi, 2
jne 0x5870f5
push 0xffffffffffffffff
push 0x40
push dword [esp + 0x70]
push 0x8d
push 1
push edi
call fcn.0058bf60
push 0
push 2
push dword [esp + 0x84]
mov esi, eax
push 0x8d
push 0x20
push edi
call fcn.0058d570
push edi
call fcn.0058d340
add esp, 0x34
test esi, esi
je 0x587112
test eax, eax
je 0x587112
mov ecx, dword [esi + 8]
and ecx, 0xfffffffd
mov dword [esi + 0xc], eax
or ecx, 1
mov dword [esi + 8], ecx
jmp 0x587112
cmp esi, 4
jne 0x587112
push 0
push 2
push dword [esp + 0x6c]
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
lea eax, [esp + 0x17c]
push eax
push ebp
push dword [esp + 0x40]
lea eax, [esp + 0x3c]
push eax
call fcn.00576fc0
add esp, 0x10
cmp dword [edi], 0
je 0x58718a
push edi
call fcn.0058e2f0
push ebx
push dword [esp + 0x4c]
call fcn.00589be0
push ebx
push dword [esp + 0x4c]
call fcn.00589be0
mov eax, dword [esp + 0x54]
add esp, 0x14
test eax, eax
je 0x586b73
nop word [eax + eax]
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
mov edi, dword [eax]
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
mov eax, edi
test edi, edi
jne 0x587160
lea eax, [edi - 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
test dword [ebx + 0x40], 0x20000000
je 0x5871aa
push 0
push 0xc
push 0
push 2
push 1
push edi
call fcn.0058bf60
add esp, 0x18
mov ebp, eax
jmp 0x5871ac
xor ebp, ebp
cmp dword [esp + 0xa0], 0
je 0x5871dc
push dword [esp + 0x54]
push 0x8d
push 0
push 2
push 0
push edi
call fcn.0058bf60
push edi
mov dword [esp + 0x48], eax
call fcn.0058d340
add esp, 0x1c
mov dword [esp + 0x1c], eax
push edi
call fcn.0058d340
mov edx, dword [esp + 0x124]
add esp, 4
mov esi, eax
mov dword [esp + 0xf8], esi
test edx, edx
je 0x587220
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x587219
test esi, esi
je 0x587219
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587200
movzx eax, word [ebx + 0x68]
inc eax
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0057c250
push edi
call fcn.0058d340
mov esi, dword [esp + 0x11c]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf0], ecx
test esi, esi
je 0x58727b
mov edx, dword [esi]
test edx, edx
je 0x58726d
test ecx, ecx
je 0x58726d
mov eax, dword [edx + 8]
and eax, 0xfffffffd
mov dword [edx + 0xc], ecx
or eax, 1
mov dword [edx + 8], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x587254
mov ecx, dword [esp + 0xf4]
mov esi, dword [esp + 0x118]
test esi, esi
je 0x5872ad
mov edx, dword [esi]
test edx, edx
je 0x58729f
test ecx, ecx
je 0x58729f
mov eax, dword [edx + 8]
and eax, 0xfffffffd
mov dword [edx + 0xc], ecx
or eax, 1
mov dword [edx + 8], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x587286
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x5872c8
test ecx, ecx
je 0x5872c8
mov eax, dword [edx + 8]
and eax, 0xfffffffd
mov dword [edx + 0xc], ecx
or eax, 1
mov dword [edx + 8], eax
push 9
push edi
call fcn.0058d3b0
push 0
push 1
push 0x20
push edi
call fcn.0058e1a0
add esp, 0x18
cmp dword [esp + 0x11c], 0
je 0x587359
push edi
call fcn.0058d340
mov edx, dword [esp + 0x120]
add esp, 4
mov esi, eax
test edx, edx
je 0x587320
nop
mov ecx, dword [edx]
test ecx, ecx
je 0x587319
test esi, esi
je 0x587319
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587300
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0058d570
mov esi, dword [esp + 0x10c]
push 0x22
push edi
call fcn.0058d2b0
add esp, 0x20
test eax, eax
je 0x587359
test esi, esi
je 0x587359
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
test dword [ebx + 0x40], 0x20000000
je 0x587382
push edi
call fcn.0058d340
add esp, 4
test ebp, ebp
je 0x587382
test eax, eax
je 0x587382
mov ecx, dword [ebp + 8]
and ecx, 0xfffffffd
mov dword [ebp + 0xc], eax
or ecx, 1
mov dword [ebp + 8], ecx
mov esi, dword [esp + 0x198]
cmp esi, 1
je 0x5873eb
push edi
call fcn.0058d340
mov edx, dword [esp + 0x110]
add esp, 4
mov esi, eax
mov dword [esp + 0xec], esi
test edx, edx
je 0x5873d0
nop dword [eax + eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x5873c9
test esi, esi
je 0x5873c9
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x5873b0
push dword [esp + 0xf0]
lea eax, [esp + 0x34]
push eax
call fcn.0058aca0
mov esi, dword [esp + 0x1a0]
add esp, 8
cmp dword [esp + 0xa0], 0
je 0x587402
push edi
call fcn.0058d340
add esp, 4
mov dword [esp + 0x18], eax
push dword [esp + 0x184]
lea eax, [esp + 0x34]
push eax
call fcn.0056ffb0
add esp, 8
cmp dword [edi], 0
push edi
je 0x58746e
call fcn.0058e2f0
push ebx
push dword [esp + 0x4c]
call fcn.00589be0
push ebx
push dword [esp + 0x4c]
call fcn.00589be0
mov eax, dword [esp + 0x54]
add esp, 0x14
test eax, eax
je 0x586b73
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
mov edi, dword [eax]
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
mov eax, edi
test edi, edi
jne 0x587444
lea eax, [edi - 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
call fcn.0058d340
add esp, 4
mov ebp, eax
cmp esi, 2
jne 0x5874f9
push 0
push 0x40
push dword [esp + 0x70]
push 0x8d
push 1
push edi
call fcn.0058bf60
push dword [esp + 0x70]
mov esi, eax
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0058d570
push 0xffffffffffffffff
push 0x40
push dword [esp + 0x9c]
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x48
push 0
push 1
push dword [esp + 0x70]
push 0x8d
push 0x20
push edi
call fcn.0058d570
push edi
call fcn.0058d340
add esp, 0x1c
test esi, esi
je 0x5874f9
test eax, eax
je 0x5874f9
mov ecx, dword [esi + 8]
and ecx, 0xfffffffd
mov dword [esi + 0xc], eax
or ecx, 1
mov dword [esi + 8], ecx
cmp dword [ebx + 0x40], 0
jl 0x58751c
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x58751c
push eax
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x587539
sub ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ecx, 2
sar ecx, 1
mov eax, dword [eax + ecx*4]
sar eax, 3
jmp 0x58753d
mov eax, dword [esp + 0x58]
push eax
push 0x8d
push 0
push 2
push 0x20
push edi
call fcn.0058d570
mov eax, dword [ebx + 0x40]
add esp, 0x18
test eax, eax
js 0x58763d
mov esi, dword [esp + 0xfc]
test esi, esi
je 0x5875fe
test eax, 0x100
jne 0x58763d
cmp dword [esp + 0x6c], 0
push 0
push 0xc
push 0
je 0x5875e4
push 4
push 0x20
push edi
call fcn.0058d570
push 0
push 1
push 0
push 0xc
push 0x20
push edi
call fcn.0058d570
mov esi, dword [esp + 0x12c]
push 0
push 1
push 0
push 2
push 2
push edi
call fcn.0058bf60
add esp, 0x48
test eax, eax
je 0x5875cf
test esi, esi
je 0x5875cf
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
push 0
push 4
push 0
push 0xc
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
jmp 0x58763d
push 2
push 2
push edi
call fcn.0058bf60
add esp, 0x18
test eax, eax
je 0x58763d
test esi, esi
je 0x58763d
mov dword [eax + 0xc], esi
jmp 0x587631
cmp dword [esp + 0x6c], 0
mov ecx, 0xc
push 0
mov eax, 1
cmove eax, ecx
push eax
push 0
push 2
push 2
push edi
call fcn.0058bf60
add esp, 0x18
test eax, eax
je 0x58763d
mov edx, dword [esp + 0x24]
test edx, edx
je 0x58763d
mov dword [eax + 0xc], edx
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
or ecx, 1
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x28]
test esi, esi
je 0x587670
push edi
call fcn.0058d340
add esp, 4
mov edx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x587669
test edx, edx
je 0x587669
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], edx
or eax, 1
mov dword [ecx + 8], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x587650
cmp dword [esp + 0x198], 2
jne 0x5876b0
mov esi, dword [esp + 0xec]
push 0xffffffffffffffff
push 0x40
push dword [esp + 0x70]
push 0x8d
push 1
push edi
call fcn.0058bf60
add esp, 0x18
test eax, eax
je 0x5876b0
test esi, esi
je 0x5876b0
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0058d570
mov esi, dword [esp + 0x108]
push 0x22
push edi
call fcn.0058d2b0
add esp, 0x20
test eax, eax
je 0x5876e9
test esi, esi
je 0x5876e9
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
lea eax, [esp + 0x30]
push eax
call fcn.00585020
add esp, 4
cmp dword [esp + 0xa0], 0
je 0x587823
push edi
call fcn.0058d340
mov edx, dword [esp + 0x30]
add esp, 4
test edx, edx
je 0x587728
test eax, eax
je 0x587728
mov ecx, dword [edx + 8]
and ecx, 0xfffffffd
mov dword [edx + 0xc], eax
or ecx, 1
mov dword [edx + 8], ecx
push 0
push 8
push 0
push 1
push 0x20
push edi
call fcn.0058d570
push 0x30
push 0x81
push 0
push 3
push 0x25
push edi
call fcn.0058d570
push 4
push 0x40
push 0
push 3
push 0x265
push edi
call fcn.0058dba0
add esp, 0x48
push 1
push edi
call fcn.0058d2b0
mov esi, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x587787
test esi, esi
je 0x587787
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
push 8
push 0x40
push 0
push 3
push 0x265
push edi
call fcn.0058dba0
push 0
push edi
call fcn.0058d2b0
add esp, 0x20
test eax, eax
je 0x5877c0
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x5877c0
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], edx
or ecx, 1
mov dword [eax + 8], ecx
push 4
push 0x81
push 0
push 3
push 0x20
push edi
call fcn.0058d570
push 0
push 2
push 0
push 3
push 1
push edi
call fcn.0058bf60
add esp, 0x30
test eax, eax
je 0x587801
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x587801
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], edx
or ecx, 1
mov dword [eax + 8], ecx
push 0x22
push edi
call fcn.0058d2b0
add esp, 8
test eax, eax
je 0x587823
test esi, esi
je 0x587823
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x104]
mov esi, dword [esp + 0xf0]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0xb4], 1
test eax, eax
je 0x587940
mov eax, dword [esp + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, 7
sar eax, 3
push ebx
push eax
mov dword [esp + 0x90], eax
call fcn.00589c00
add esp, 8
mov dword [esp + 0x8c], eax
test eax, eax
je 0x5878e3
nop dword [eax + eax]
lea eax, [esp + 0x30]
push eax
call fcn.005777d0
add esp, 4
cmp dword [edi], 0
jne 0x5878d3
lea eax, [esp + 0x30]
push eax
call fcn.00585020
mov eax, dword [esp + 0x10c]
add esp, 4
mov eax, dword [eax]
mov dword [esp + 0x108], eax
test eax, eax
jne 0x5878a0
push ebx
push dword [esp + 0x90]
call fcn.00589be0
add esp, 8
cmp dword [esp + 0x108], 0
je 0x587940
push edi
call fcn.0058e2f0
push ebx
push dword [esp + 0x4c]
call fcn.00589be0
push ebx
push dword [esp + 0x4c]
call fcn.00589be0
mov eax, dword [esp + 0x54]
add esp, 0x14
test eax, eax
je 0x586b73
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
mov edi, dword [eax]
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
mov eax, edi
test edi, edi
jne 0x587916
lea eax, [edi - 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
push edi
mov dword [esp + 0xb8], 0
mov dword [esp + 0xf4], esi
call fcn.0058d340
mov edx, dword [esp + 0x12c]
add esp, 4
mov esi, eax
test edx, edx
je 0x587988
mov ecx, dword [edx]
test ecx, ecx
je 0x587981
test esi, esi
je 0x587981
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587968
push 0
push 0x8d
push edi
call fcn.0058c780
push 0
push 2
push 4
push 0x8d
push 0x20
push edi
call fcn.0058d570
push 0
push 8
push 0
push 1
push 0x20
push edi
call fcn.0058d570
push 0x2000
push 0x40
push 0
push 0xa
push 0
push 2
push 0x62
push edi
call fcn.0058d7b0
add esp, 0x5c
push 0
push 0x81
push 0
push 1
push 0x20
push edi
call fcn.0058d570
push 0
push 3
push 0
push 0xa
push 0x20
push edi
call fcn.0058d570
push fcn.0058eb20
push 0x40
push 0x111
push 0x24
push edi
call fcn.0058cdb0
add esp, 0x44
push 0
push 0x40
push 0
push 1
push 0
push edi
call fcn.0058bf60
push 0
push 0xa
push 0
push 3
push 0x20
push edi
mov esi, eax
call fcn.0058d570
push 0
push 1
push 0
push 0xa
push 0x20
push edi
call fcn.0058d570
add esp, 0x48
push 0
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0058d570
push 4
push 0x8d
push 0
push 2
push 0x20
push edi
call fcn.0058d570
push 0
push 1
push 0x80
push edi
call fcn.0058df70
add esp, 0x40
push edi
call fcn.0058d340
add esp, 4
test esi, esi
je 0x587a99
test eax, eax
je 0x587a99
mov ecx, dword [esi + 8]
and ecx, 0xfffffffd
mov dword [esi + 0xc], eax
or ecx, 1
mov dword [esi + 8], ecx
push 0xffffffffffffffd2
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0058d570
mov esi, dword [esp + 0x108]
push 0x22
push edi
call fcn.0058d2b0
add esp, 0x20
test eax, eax
je 0x587ad2
test esi, esi
je 0x587ad2
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
push edi
call fcn.0058d340
mov edx, dword [esp + 0x128]
add esp, 4
mov esi, eax
test edx, edx
je 0x587b08
mov ecx, dword [edx]
test ecx, ecx
je 0x587b01
test esi, esi
je 0x587b01
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587ae8
push 0xffffffffffffffd1
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0058d570
mov esi, dword [esp + 0x108]
push 0x22
push edi
call fcn.0058d2b0
add esp, 0x20
test eax, eax
je 0x587b41
test esi, esi
je 0x587b41
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
cmp dword [esp + 0x12c], 0
je 0x587b8e
push edi
call fcn.0058d340
mov edx, dword [esp + 0x130]
add esp, 4
mov esi, eax
test edx, edx
je 0x587b81
mov ecx, dword [edx]
test ecx, ecx
je 0x587b7a
test esi, esi
je 0x587b7a
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587b61
lea eax, [esp + 0x30]
push eax
call fcn.0057f2d0
add esp, 4
cmp dword [esp + 0x130], 0
je 0x587bdd
push edi
call fcn.0058d340
mov edx, dword [esp + 0x134]
add esp, 4
mov esi, eax
test edx, edx
je 0x587bd0
nop
mov ecx, dword [edx]
test ecx, ecx
je 0x587bc9
test esi, esi
je 0x587bc9
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587bb0
lea eax, [esp + 0x30]
push eax
call fcn.0056e540
add esp, 4
cmp dword [esp + 0x134], 0
je 0x587ce4
push edi
call fcn.0058d340
mov edx, dword [esp + 0x138]
add esp, 4
mov esi, eax
test edx, edx
je 0x587c21
mov ecx, dword [edx]
test ecx, ecx
je 0x587c1a
test esi, esi
je 0x587c1a
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587c01
mov esi, dword [esp + 0x30]
push 0
push 5
push esi
call fcn.0058c780
push 0xa
push 0x40
push 0
push 1
push 0
push 1
push 0x62
push esi
call fcn.0058d7b0
add esp, 0x2c
cmp dword [esi], 0
jne 0x587c5c
push 3
push 0x40
push 0
push 1
push esi
call fcn.0057fe90
add esp, 0x14
push 5
push 0
push 3
push 0x20
push esi
call fcn.0058dca0
add esp, 0x14
cmp dword [esi], 0
jne 0x587c83
push 0x7b
push 0x40
push 0
push 1
push esi
call fcn.0057fe90
add esp, 0x14
push 0
push 0
push 3
push 0x66
push esi
call fcn.0058dca0
push 1
push 0x40
push 0
push 1
push 0
push 1
push 0x66
push esi
call fcn.0058d7b0
add esp, 0x34
cmp dword [esi], 0
jne 0x587cc1
push 0x201f
push 0x40
push 0
push 1
push esi
call fcn.0057fe90
add esp, 0x14
push 0
push 0
push 3
push 0x266
push esi
call fcn.0058dca0
push 0
push 5
push 0x80
push esi
call fcn.0058df70
add esp, 0x24
cmp dword [esp + 0x138], 0
je 0x587d31
push edi
call fcn.0058d340
mov edx, dword [esp + 0x13c]
add esp, 4
mov esi, eax
test edx, edx
je 0x587d24
mov ecx, dword [edx]
test ecx, ecx
je 0x587d1d
test esi, esi
je 0x587d1d
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587d04
lea eax, [esp + 0x30]
push eax
call fcn.0056db40
add esp, 4
cmp dword [esp + 0x13c], 0
je 0x587e38
push edi
call fcn.0058d340
mov edx, dword [esp + 0x140]
add esp, 4
mov esi, eax
test edx, edx
je 0x587d75
mov ecx, dword [edx]
test ecx, ecx
je 0x587d6e
test esi, esi
je 0x587d6e
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587d55
mov esi, dword [esp + 0x30]
push 0
push 5
push esi
call fcn.0058c780
push 0xa
push 0x40
push 0
push 1
push 0
push 1
push 0x62
push esi
call fcn.0058d7b0
add esp, 0x2c
cmp dword [esi], 0
jne 0x587db0
push 3
push 0x40
push 0
push 1
push esi
call fcn.0057fe90
add esp, 0x14
push 5
push 0
push 3
push 0x20
push esi
call fcn.0058dca0
add esp, 0x14
cmp dword [esi], 0
jne 0x587dd7
push 0x7b
push 0x40
push 0
push 1
push esi
call fcn.0057fe90
add esp, 0x14
push 0
push 0
push 3
push 0x66
push esi
call fcn.0058dca0
push 1
push 0x40
push 0
push 1
push 0
push 1
push 0x66
push esi
call fcn.0058d7b0
add esp, 0x34
cmp dword [esi], 0
jne 0x587e15
push 0x201f
push 0x40
push 0
push 1
push esi
call fcn.0057fe90
add esp, 0x14
push 0
push 0
push 3
push 0x266
push esi
call fcn.0058dca0
push 0
push 5
push 0x80
push esi
call fcn.0058df70
add esp, 0x24
cmp dword [esp + 0x140], 0
je 0x587e85
push edi
call fcn.0058d340
mov edx, dword [esp + 0x144]
add esp, 4
mov esi, eax
test edx, edx
je 0x587e78
mov ecx, dword [edx]
test ecx, ecx
je 0x587e71
test esi, esi
je 0x587e71
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587e58
lea eax, [esp + 0x30]
push eax
call fcn.0057e560
add esp, 4
cmp dword [esp + 0x144], 0
je 0x587ed2
push edi
call fcn.0058d340
mov edx, dword [esp + 0x148]
add esp, 4
mov esi, eax
test edx, edx
je 0x587ec5
mov ecx, dword [edx]
test ecx, ecx
je 0x587ebe
test esi, esi
je 0x587ebe
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587ea5
lea eax, [esp + 0x30]
push eax
call fcn.0057e700
add esp, 4
cmp dword [esp + 0x148], 0
je 0x587f8c
push edi
call fcn.0058d340
mov edx, dword [esp + 0x14c]
add esp, 4
mov esi, eax
test edx, edx
je 0x587f16
mov ecx, dword [edx]
test ecx, ecx
je 0x587f0f
test esi, esi
je 0x587f0f
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587ef6
movzx eax, word [ebx + 0x68]
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0057f120
push 0
push 1
push 0
push 2
push 4
push edi
call fcn.0058bf60
add esp, 0x20
test eax, eax
je 0x587f5a
mov edx, dword [esp + 0x10]
test edx, edx
je 0x587f5a
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], edx
or ecx, 1
mov dword [eax + 8], ecx
push 0
push 1
push 0
push 2
push 0x20
push edi
call fcn.0058d570
push 0x22
push edi
call fcn.0058d2b0
add esp, 0x20
test eax, eax
je 0x587f8c
test ebp, ebp
je 0x587f8c
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], ebp
or ecx, 1
mov dword [eax + 8], ecx
cmp dword [esp + 0x16c], 0
je 0x587fdd
push edi
call fcn.0058d340
mov edx, dword [esp + 0x170]
add esp, 4
mov esi, eax
test edx, edx
je 0x587fd0
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x587fc9
test esi, esi
je 0x587fc9
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x587fb0
lea eax, [esp + 0x30]
push eax
call fcn.0057f8e0
add esp, 4
cmp dword [esp + 0x170], 0
je 0x58802d
push edi
call fcn.0058d340
mov edx, dword [esp + 0x174]
add esp, 4
mov esi, eax
test edx, edx
je 0x588020
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x588019
test esi, esi
je 0x588019
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x588000
lea eax, [esp + 0x30]
push eax
call fcn.0057fa80
add esp, 4
cmp dword [esp + 0x174], 0
je 0x58807d
push edi
call fcn.0058d340
mov edx, dword [esp + 0x178]
add esp, 4
mov esi, eax
test edx, edx
je 0x588070
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x588069
test esi, esi
je 0x588069
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x588050
lea eax, [esp + 0x30]
push eax
call fcn.0057f570
add esp, 4
cmp dword [esp + 0x178], 0
je 0x5880cd
push edi
call fcn.0058d340
mov edx, dword [esp + 0x17c]
add esp, 4
mov esi, eax
test edx, edx
je 0x5880c0
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x5880b9
test esi, esi
je 0x5880b9
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x5880a0
lea eax, [esp + 0x30]
push eax
call fcn.0057f700
add esp, 4
cmp dword [esp + 0x164], 0
je 0x58811d
push edi
call fcn.0058d340
mov edx, dword [esp + 0x168]
add esp, 4
mov esi, eax
test edx, edx
je 0x588110
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x588109
test esi, esi
je 0x588109
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x5880f0
lea eax, [esp + 0x30]
push eax
call fcn.0057eeb0
add esp, 4
cmp dword [esp + 0x168], 0
je 0x58816d
push edi
call fcn.0058d340
mov edx, dword [esp + 0x16c]
add esp, 4
mov esi, eax
test edx, edx
je 0x588160
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x588159
test esi, esi
je 0x588159
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x588140
lea eax, [esp + 0x30]
push eax
call fcn.0057efc0
add esp, 4
push ebx
push dword [esp + 0x48]
call fcn.00589be0
push ebx
push dword [esp + 0x48]
call fcn.00589be0
push edi
call fcn.0058e4d0
mov ebp, eax
mov eax, dword [edi + 0x54]
push edi
mov dword [esp + 0x28], eax
call fcn.0058e2f0
add esp, 0x18
test ebp, ebp
jne 0x5881da
mov eax, dword [esp + 0x40]
test eax, eax
je 0x586b73
nop dword [eax]
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
mov edi, dword [eax]
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
mov eax, edi
test edi, edi
jne 0x5881b0
lea eax, [edi - 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
mov esi, dword [ebx + 0x10]
test esi, esi
jne 0x58824f
push ebx
push 0x2c
call fcn.00589c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x588231
push ebp
call fcn.0058e360
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x586b73
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
mov edi, dword [eax]
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
mov eax, edi
test edi, edi
jne 0x588207
lea eax, [edi - 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
push 0x2c
push 0
push esi
call fcn.00598150
movzx eax, word [ebx + 0x68]
add esp, 0xc
inc eax
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x10], esi
mov eax, dword [esp + 0x198]
xor ecx, ecx
cmp eax, 1
je 0x588264
cmp eax, 2
setne cl
inc ecx
mov dword [esi + ecx*4], ebp
mov eax, dword [esp + 0x40]
mov dword [esi + ecx*4 + 0xc], eax
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + ecx*4 + 0x18], eax
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
mov eax, dword [edi + 0x34]
test eax, eax
je 0x5882b3
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
push eax
call dword [0x5cb3f0]
call esi
add esp, 8
push dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, esi
push edi
call dword [0x5cb3f0]
call esi
add esp, 8
push ebx
push dword [esp + 0x48]
call fcn.00589be0
push ebx
push dword [esp + 0x48]
jmp 0x586b6b
pop esi
pop ebp
mov eax, 0xffffffd4
pop ebx
add esp, 0x180
ret