Function at 0x58622c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov dword [ebp - 0x4c], 0xffffffff
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x101], 0
je 0x586352
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x18c], 0
je 0x58627d
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x18c]
mov dl, 1
call fcn.006216d4
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
xor edx, edx
call fcn.005f85ac
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edi, dword [eax + 0x14]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
push 1
mov al, byte [ebp + 0x20]
push eax
push 1
mov al, byte [ebp + 0x18]
push eax
mov al, byte [ebp + 0x14]
push eax
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov al, byte [eax + 0x4dc]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.0058622c
push 0
push 0
mov eax, ebx
call fcn.0041e9b0
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dl, 1
call fcn.005f85ac
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x18c], 0
je 0x586321
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x18c]
call fcn.006217a8
test al, al
jne 0x586321
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [eax + 0x18c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x28]
jmp 0x587081
push 0
push 0
mov eax, ebx
call fcn.0041e9b0
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 0x14], edi
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0xf8], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0xfc], edx
mov eax, ebx
call fcn.00587688
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x586393
cmp dword [ebp - 0x30], 0xffffffff
jne 0x586393
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x587081
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov eax, ebx
call fcn.0041e9b0
cmp byte [ebp + 0x10], 0
je 0x5863b2
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
mov eax, ebx
call fcn.005880b8
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
je 0x5863d2
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x5a8], 0
je 0x5863d2
mov eax, dword [0x698a24]
cmp byte [eax], 0
jne 0x5863d6
xor eax, eax
jmp 0x5863d8
mov al, 1
mov byte [ebp - 0x41], al
xor edx, edx
push ebp
push 0x587077
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push esi
mov esi, 0x67392c
lea edi, [ebp - 0x298]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
mov ecx, 0x1d0
mov edx, 0x3e
call fcn.005883cc
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
je 0x586444
call fcn.00404910
jmp 0x587081
test esi, esi
je 0x58646c
cmp ebx, esi
je 0x58646c
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx + 0x28]
lea eax, [ebp - 0x220]
mov edx, esi
call fcn.00586178
lea eax, [ebp - 0x220]
xor edx, edx
call fcn.00588694
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx + 0x28]
lea eax, [ebp - 0x220]
mov edx, ebx
call fcn.00586178
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
je 0x586494
call fcn.00404910
jmp 0x587081
xor eax, eax
push ebp
push 0x5864ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x220]
mov ecx, 0xffff
mov edx, 0xfe
call fcn.00594418
mov esi, 0xe0
lea eax, [ebp - 0x220]
mov ecx, 0xffff
mov edx, esi
call fcn.00594418
inc esi
cmp esi, 0xf0
jne 0x5864bc
lea eax, [ebp - 0x220]
or edx, 0xffffffff
call fcn.00588694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x586511
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
je 0x586526
call fcn.00404910
jmp 0x587081
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 8], 8
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f8]
cmp eax, 5
ja case.0x58654d.0
jmp dword [eax*4 + 0x586554]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov byte [eax + 0xdc], 0
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 0x10], 3
jmp case.0x58654d.0
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov byte [eax + 0xdc], 1
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 0x10], 1
jmp case.0x58654d.0
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov byte [eax + 0xdc], 2
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 0x10], 3
mov dword [ebp - 0x1f4], 2
jmp case.0x58654d.0
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov byte [eax + 0xdc], 3
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 0x10], 4
jmp case.0x58654d.0
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov byte [eax + 0xdc], 4
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 0x10], 4
mov dword [ebp - 0x1f4], 4
cmp byte [ebp + 0x20], 0
je 0x586610
mov dword [ebp - 0x1f4], 3
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov al, byte [eax + 0xe4]
sub al, 1
jb 0x586627
je 0x586631
dec al
je 0x58663d
jmp 0x586647
xor eax, eax
mov dword [ebp - 0x1d8], eax
jmp 0x586647
mov dword [ebp - 0x1d8], 1
jmp 0x586647
mov dword [ebp - 0x1d8], 2
mov al, byte [ebp - 0x102]
sub al, 2
jb 0x586655
je 0x586679
jmp 0x5866d1
movzx edx, word [ebp - 0x100]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f850c
movzx edx, word [ebp - 0xfe]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f853c
jmp 0x5866d1
movzx eax, word [ebp - 0x100]
mov dword [ebp - 0x29c], eax
fild dword [ebp - 0x29c]
fld xword [0x587090]
fdivp st(1)
call fcn.00403054
mov edx, eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f850c
movzx eax, word [ebp - 0xfe]
mov dword [ebp - 0x29c], eax
fild dword [ebp - 0x29c]
fld xword [0x587090]
fdivp st(1)
call fcn.00403054
mov edx, eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f853c
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x4e0], 0
je 0x586709
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x4e0]
call fcn.00402b60
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0x4e0], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0x4e4], edx
cmp dword [ebp - 0x144], 1
sbb eax, eax
inc eax
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
mov byte [edx + 0xec], al
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x204]
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x200]
mov dword [eax + 0x38], edx
mov dword [ebp - 0x1f0], 1
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
movzx eax, byte [eax + 0xed]
cmp eax, 4
ja case.default.0x586759
jmp dword [eax*4 + 0x586760]
mov dword [ebp - 0x1ec], 1
jmp case.default.0x586759
mov dword [ebp - 0x1ec], 2
jmp case.default.0x586759
mov dword [ebp - 0x1ec], 4
jmp case.default.0x586759
mov dword [ebp - 0x1ec], 8
jmp case.default.0x586759
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x14], 0
jle 0x58681b
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x18], 0
jle 0x58681b
xor eax, eax
mov dword [ebp - 0x20], eax
mov esi, 3
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [ebp - 0x204]
cdq
idiv ecx
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x14]
jl 0x586803
mov eax, dword [ebp - 0x200]
cdq
idiv ecx
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x18]
jl 0x586803
mov dword [ebp - 0x20], esi
jmp 0x586809
dec esi
cmp esi, 0xffffffff
jne 0x5867cd
mov ecx, dword [ebp - 0x20]
mov eax, 1
shl eax, cl
mov dword [ebp - 0x1ec], eax
jmp case.default.0x586759
mov dword [ebp - 0x1ec], 1
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1ec]
mov dword [eax + 0xf4], edx
cmp byte [ebp + 0x24], 0
je 0x586862
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x204]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x200]
mov dword [eax + 0x18], edx
call fcn.00404910
jmp 0x587081
xor eax, eax
push ebp
push 0x586885
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x220]
call fcn.00589b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5868a7
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
je 0x5868bc
call fcn.00404910
jmp 0x587081
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1b0]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1ac]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x1b0]
shl eax, 2
call fcn.00402b30
mov dword [ebp - 0x14], eax
cmp byte [ebp + 8], 0
je 0x586999
mov eax, dword [ebp - 0x1f4]
cmp eax, 5
ja case.0x586902.0
jmp dword [eax*4 + 0x586909]
push 3
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
jmp case.0x586902.0
push 5
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
jmp case.0x586902.0
push 5
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
jmp case.0x586902.0
push 7
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
jmp case.0x586902.0
push 5
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
jmp case.0x586902.0
push 5
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
cmp dword [ebp + 0xc], 0
jge 0x5869c0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x2a4], eax
xor eax, eax
mov dword [ebp - 0x2a0], eax
fild qword [ebp - 0x2a4]
fdivr dword [0x58709c]
mov eax, dword [ebp + 0x28]
fstp qword [eax + 0x18]
wait
mov eax, dword [ebp + 0x28]
xor edx, edx
mov dword [eax + 0xc], edx
xor eax, eax
push ebp
push 0x586ced
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
jmp 0x586cc9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1f4]
dec eax
je 0x586a3e
dec eax
je 0x586bc0
dec eax
je 0x586acc
dec eax
je 0x586b10
jmp 0x586c5c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 3
jne 0x586a65
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x220]
mov ecx, 1
call fcn.00589ccc
mov dword [ebp - 0x10], eax
jmp 0x586c5c
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x220]
mov ecx, 1
call fcn.00589ccc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1b0]
dec ebx
test ebx, ebx
jl 0x586c5c
inc ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
mov edx, dword [ebp - 0x50]
mov byte [edx + 2], al
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
mov edx, dword [ebp - 0x50]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
mov edx, dword [ebp - 0x50]
mov byte [edx], al
inc dword [ebp - 0x18]
add dword [ebp - 0x1c], 3
dec ebx
jne 0x586a97
jmp 0x586c5c
cmp byte [ebp + 0x20], 0
je 0x586c5c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x220]
mov ecx, 1
call fcn.00589ccc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x1f8], 2
jne 0x586c5c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0060ada0
jmp 0x586c5c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 5
jne 0x586b96
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x220]
mov ecx, 1
call fcn.00589ccc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x586ce3
cmp byte [ebp + 0x18], 0
je 0x586b70
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1b0]
dec eax
mov ebx, eax
shl ebx, 2
test ebx, ebx
jl 0x586b70
inc ebx
mov eax, dword [ebp - 0x18]
mov dl, 0xff
sub dl, byte [eax]
mov eax, dword [ebp - 0x18]
mov byte [eax], dl
inc dword [ebp - 0x18]
dec ebx
jne 0x586b5e
push 1
mov eax, dword [ebp - 0x1b0]
push eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
push eax
mov ebx, dword [0x698ccc]
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov dl, 2
mov eax, dword [ebp - 0x14]
call ebx
jmp 0x586c5c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x220]
mov ecx, 1
call fcn.00589ccc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x586ce3
jmp 0x586c5c
cmp byte [ebp - 0x41], 0
je 0x586c2b
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x220]
mov ecx, 1
call fcn.00589ccc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x1f8], 2
jne 0x586c08
push 1
mov eax, dword [ebp - 0x1b0]
push eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
push eax
mov ebx, dword [0x698ccc]
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x14]
call ebx
jmp 0x586c5c
push 1
mov eax, dword [ebp - 0x1b0]
push eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
push eax
mov ebx, dword [0x698ccc]
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [ebp - 0x14]
call ebx
jmp 0x586c5c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x220]
mov ecx, 1
call fcn.00589ccc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x1f8], 2
jne 0x586c5c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0060ada0
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp - 0x10]
add dword [eax + 0xc], edx
mov eax, dword [ebp + 0x28]
cmp word [eax + 2], 0
je 0x586cbe
mov eax, dword [ebp + 0x28]
fild dword [eax + 0xc]
mov eax, dword [ebp + 0x28]
fmul qword [eax + 0x18]
call fcn.00403054
push edx
push eax
mov eax, dword [ebp - 0x4c]
cdq
cmp edx, dword [esp + 4]
jne 0x586c95
cmp eax, dword [esp]
pop edx
pop eax
je 0x586cbe
mov eax, dword [ebp + 0x28]
fild dword [eax + 0xc]
mov eax, dword [ebp + 0x28]
fmul qword [eax + 0x18]
call fcn.00403054
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x28]
mov edx, dword [edx + 8]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebx + 4]
call dword [ebx]
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x586ce3
mov eax, dword [ebp - 0x194]
cmp eax, dword [ebp - 0x1ac]
jae 0x586ce3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jl 0x586a0e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x586d0f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jge 0x586d2a
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
call fcn.00404910
jmp 0x587081
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587081
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0xf0]
call fcn.0061b3e8
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x24], eax
xor ebx, ebx
cmp dword [ebp - 0x24], 0
je 0x586da3
mov eax, dword [ebp - 0x24]
cmp byte [eax + 4], 0xe0
setne al
or al, bl
je 0x586d8a
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x24]
mov dl, byte [eax + 4]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0xf0]
call fcn.0061b32c
mov eax, dword [ebp - 0x24]
cmp byte [eax + 4], 0xe0
jne 0x586d95
mov bl, 1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x586d58
mov al, byte [ebp + 0x14]
and al, byte [ebp - 0x41]
je 0x586dfa
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f8630
call fcn.0063014c
test al, al
je 0x586dfa
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f8630
call fcn.00630164
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0xf0]
mov dl, 0xe2
call fcn.0061b2f8
mov edi, eax
cmp edi, 0xffffffff
je 0x586dfa
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0xf0]
mov edx, edi
call fcn.0061b41c
jmp 0x586dcd
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x586e40
cmp byte [ebp + 0x24], 0
jne 0x586e40
xor eax, eax
mov dword [ebp - 0x224], eax
xor eax, eax
push ebp
push 0x586e36
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x220]
call fcn.00588814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x586e40
lea eax, [ebp - 0x220]
call fcn.0058849c
cmp dword [ebp - 0x14], 0
je 0x586e59
mov eax, dword [ebp - 0x14]
call fcn.00402b60
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0x70], 0
je 0x586e8d
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x70]
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
mov dword [edx + 0xf8], eax
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
mov dword [edx + 0xfc], eax
lea eax, [ebp - 0x220]
call fcn.00586204
cmp byte [ebp + 0x1c], 0
je 0x587076
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov esi, dword [eax + 0xf0]
mov eax, esi
call fcn.0061b2a4
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x586efc
inc ebx
xor edi, edi
mov edx, edi
mov eax, esi
call fcn.0061b2cc
cmp al, 0xed
jne 0x586ef8
mov edx, edi
mov eax, esi
call fcn.0061b2e0
movzx eax, ax
push eax
mov edx, edi
mov eax, esi
call fcn.0061b2ac
mov edx, eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x17c]
pop ecx
call fcn.0061ba78
test al, al
jne 0x586efc
inc edi
dec ebx
jne 0x586ebe
mov eax, esi
call fcn.0061b2a4
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x587011
inc ebx
xor edi, edi
mov edx, edi
mov eax, esi
call fcn.0061b2cc
cmp al, 0xe1
jne 0x587009
mov edx, edi
mov eax, esi
call fcn.0061b2e0
movzx eax, ax
push eax
mov edx, edi
mov eax, esi
call fcn.0061b2ac
mov ecx, dword [ebp + 0x2c]
mov ecx, dword [ecx]
pop edx
call fcn.0061fa4c
test al, al
je 0x587009
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
mov ebx, dword [edx + 0x20]
cmp eax, 1
jne 0x586fcf
cmp ebx, 1
jne 0x586fcf
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x1b0], 3
jne 0x586f83
mov dword [ebp - 0x40], 0x851eb852
mov dword [ebp - 0x3c], 0x400451eb
jmp 0x586f8f
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x3ff00000
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
fld qword [eax + 0x1a0]
fmul qword [ebp - 0x40]
call fcn.00403054
mov edx, eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f850c
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
fld qword [eax + 0x1a8]
fmul qword [ebp - 0x40]
call fcn.00403054
mov edx, eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
call fcn.005f853c
jmp 0x586fe6
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx]
xchg edx, eax
call fcn.005f850c
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, ebx
call fcn.005f853c
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x100], 0
je 0x587011
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [eax + 0x19c]
mov eax, dword [ebp - 4]
call fcn.00630ec8
jmp 0x587011
inc edi
dec ebx
jne 0x586f11
mov eax, esi
call fcn.0061b2a4
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x587076
inc ebx
xor edi, edi
mov edx, edi
mov eax, esi
call fcn.0061b2cc
cmp al, 0xe1
jne 0x587072
mov edx, edi
mov eax, esi
call fcn.0061b2e0
movzx eax, ax
push eax
mov edx, edi
mov eax, esi
call fcn.0061b2ac
pop edx
call fcn.00631a2c
test eax, eax
je 0x587072
mov edx, edi
mov eax, esi
call fcn.0061b2e0
movzx eax, ax
push eax
mov edx, edi
mov eax, esi
call fcn.0061b2ac
mov ecx, dword [ebp + 0x2c]
mov ecx, dword [ecx]
pop edx
call fcn.00631a78
jmp 0x587076
inc edi
dec ebx
jne 0x587022
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28